/* ============================================================
   GinnyPix — Apple-like Inventor Aesthetic
   ============================================================ */

:root {
  --font:        -apple-system, BlinkMacSystemFont, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --radius:      8px;
  --radius-lg:   16px;
  --transition:  0.3s ease;

  /* Dark theme (default) */
  --bg:          #080808;
  --bg-card:     #111111;
  --bg-elevated: #1a1a1a;
  --border:      #222222;
  --text:        #f0f0f0;
  --text-muted:  #666666;
  --text-dim:    #999999;
  --accent:      #c8a96e;
  --accent-dim:  #a88a50;
  --white:       #ffffff;
}

/* ── LIGHT THEME ── */
body[data-theme="light"],
[data-theme="light"] {
  --bg:          #ffffff;
  --bg-card:     #f8f8f6;
  --bg-elevated: #f0f0ee;
  --border:      #e0e0de;
  --text:        #1a1a1a;
  --text-muted:  #888888;
  --text-dim:    #555555;
  --accent:      #b8943e;
  --accent-dim:  #9a7a30;
  --white:       #111111;
}

[data-theme="light"] nav {
  background: rgba(255,255,255,0.9);
  border-bottom-color: rgba(0,0,0,0.06);
}

[data-theme="light"] .nav-cta {
  color: var(--white) !important;
  border-color: rgba(0,0,0,0.15) !important;
}

[data-theme="light"] .nav-cta:hover {
  background: rgba(0,0,0,0.04) !important;
  border-color: rgba(0,0,0,0.3) !important;
}

[data-theme="light"] .hero-bg {
  background: var(--bg);
}

[data-theme="light"] .hero-noise { opacity: 0.1; }

[data-theme="light"] .btn-primary { color: #fff; }

[data-theme="light"] .screenshot-item {
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

[data-theme="light"] .gallery-item::after { background: rgba(0,0,0,0.03); }
[data-theme="light"] .gallery-item:hover::after { background: rgba(0,0,0,0); }

[data-theme="light"] .product-icon {
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

/* ── TYPOGRAPHY ── */
h1 { font-size: clamp(3rem, 7vw, 6rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
h2 { font-size: clamp(2.2rem, 4.5vw, 3.8rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); font-weight: 600; letter-spacing: -0.01em; }
p  { font-size: 1.05rem; color: var(--text-dim); line-height: 1.8; }

.label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.section   { padding: 10rem 0; }

.section-header {
  text-align: center;
  margin-bottom: 5rem;
}
.section-header h2 { color: var(--white); margin-bottom: 1rem; }
.section-header p { font-size: 1.15rem; max-width: 40ch; margin: 0 auto; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8,8,8,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: var(--transition);
}

.nav-logo {
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.nav-logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2.5rem; align-items: center; }

.nav-links a {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--white); }

.nav-cta {
  font-size: 0.75rem !important;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white) !important;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.55rem 1.2rem;
  border-radius: var(--radius);
  transition: background var(--transition), border-color var(--transition) !important;
}
.nav-cta:hover {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.4) !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: var(--transition);
}

.nav-theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition);
  padding: 0;
}
.nav-theme-toggle:hover { color: var(--white); border-color: var(--text-muted); }
.nav-theme-toggle svg { width: 16px; height: 16px; fill: currentColor; }
.nav-theme-toggle .icon-moon { display: block; }
.nav-theme-toggle .icon-sun { display: none; }
[data-theme="light"] .nav-theme-toggle .icon-moon { display: none; }
[data-theme="light"] .nav-theme-toggle .icon-sun { display: block; }

.nav-instagram,
.nav-store-link {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color var(--transition);
}
.nav-instagram:hover,
.nav-store-link:hover { color: var(--white); }

.footer-instagram {
  display: flex;
  align-items: center;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-instagram:hover { color: var(--white); }

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(200, 169, 110, 0.05) 0%, transparent 70%),
    var(--bg);
}

.hero-noise {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.3;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 2rem;
}

.hero-content h1 {
  color: var(--white);
  margin-bottom: 2rem;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 45ch;
  margin: 0 auto 3.5rem;
  line-height: 1.9;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--accent);
  color: #000;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary:hover { background: var(--accent-dim); transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), border-color var(--transition);
}
.btn-ghost:hover { color: var(--white); border-color: var(--white); }

/* ── STATS STRIP ── */
.stats-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 4rem 0;
}

.stats-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
}

.stat-item { text-align: center; }

.stat-number {
  display: block;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── PRODUCT SECTIONS ── */
.product-section {
  padding: 10rem 0;
  border-bottom: 1px solid var(--border);
}

.product-alt {
  background: var(--bg-card);
}

.product-problem {
  text-align: center;
  margin-bottom: 3rem;
  font-size: 1.1rem;
  color: var(--text-muted);
  font-style: italic;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

.product-solution {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6rem;
  align-items: center;
  max-width: 900px;
  margin: 0 auto;
}

.product-info .label { margin-bottom: 0.75rem; }
.product-info h2 {
  color: var(--white);
  margin-bottom: 1.5rem;
}
.product-info h3 {
  color: var(--white);
  margin-bottom: 1rem;
  font-size: 2rem;
}
.product-info > p {
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.product-features {
  list-style: none;
  margin-bottom: 2.5rem;
}

.product-features li {
  font-size: 0.95rem;
  color: var(--text-dim);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
}

.product-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  transform: translateY(-50%);
}

.product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-icon {
  width: 160px;
  height: 160px;
  border-radius: 36px;
  object-fit: cover;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.app-badges { display: flex; gap: 1rem; flex-wrap: wrap; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 0.65rem 1.2rem;
  border-radius: 100px;
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  transition: border-color var(--transition), color var(--transition);
}
.badge:hover { border-color: var(--accent); color: var(--white); }
.badge svg { width: 16px; height: 16px; fill: currentColor; }

/* ── SCREENSHOTS ── */
.screenshots-section {
  padding: 0;
  border-bottom: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}

.screenshots-scroll {
  overflow-x: auto;
  padding: 5rem 2rem;
  scrollbar-width: none;
}
.screenshots-scroll::-webkit-scrollbar { display: none; }

.screenshots-track {
  display: flex;
  gap: 1.2rem;
  width: max-content;
  margin: 0 auto;
}

.screenshot-item {
  flex-shrink: 0;
  width: 220px;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.screenshot-item img { width: 100%; height: auto; display: block; }

/* ── APPS GRID ── */
#apps { border-bottom: 1px solid var(--border); }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.app-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: background var(--transition), transform var(--transition);
  cursor: pointer;
}
.app-card:hover {
  background: var(--bg-elevated);
  transform: translateY(-4px);
}

.app-card-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
}
.app-card-icon img {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  object-fit: cover;
}

.app-card h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.app-card p {
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.app-platforms { display: flex; gap: 0.4rem; justify-content: center; }
.platform-tag {
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

/* ── GALLERY ── */
.gallery-section {
  padding: 10rem 0 0;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 300px 300px;
  gap: 4px;
}

.gallery-item {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
  transition: transform 0.5s ease;
}
.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.1);
  transition: background var(--transition);
}
.gallery-item:hover::after { background: rgba(0,0,0,0); }
.gallery-item:hover { transform: scale(1.01); }
.gallery-item:nth-child(1) { grid-column: span 2; }
.gallery-item:nth-child(6) { grid-column: span 2; }

/* ── PHILOSOPHY ── */
#philosophy { border-bottom: 1px solid var(--border); }

.philosophy-block {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.philosophy-block h2 {
  color: var(--white);
  margin-bottom: 2rem;
}
.philosophy-block h2 em {
  font-style: normal;
  color: var(--accent);
}
.philosophy-block p {
  font-size: 1.1rem;
  line-height: 1.9;
  margin-bottom: 3rem;
}

/* ── REVIEWS ── */
#reviews { border-bottom: 1px solid var(--border); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.review-stars {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem;
}

.review-text {
  font-size: 0.95rem;
  color: var(--text-dim);
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.review-author {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}
.review-author strong {
  color: var(--text-dim);
  font-weight: 500;
}

/* ── CONTACT FORM ── */
#contact { border-bottom: 1px solid var(--border); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  align-items: start;
}

.contact-info .section-header { text-align: left; }

.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }

.contact-detail { display: flex; flex-direction: column; gap: 0.3rem; }
.contact-detail-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.contact-detail a,
.contact-detail span { font-size: 0.95rem; color: var(--text-dim); }
.contact-detail a:hover { color: var(--white); }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }

.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  font-size: 0.95rem;
  color: var(--text);
  font-family: var(--font);
  transition: border-color var(--transition);
  outline: none;
  resize: vertical;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }

.contact-submit {
  align-self: flex-start;
  cursor: pointer;
  border: none;
}
.contact-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status { font-size: 0.85rem; min-height: 1.2em; }
.form-success { color: #4caf50; }
.form-error { color: #f44336; }

.recaptcha-notice { font-size: 0.7rem; color: var(--text-muted); }
.recaptcha-notice a { color: var(--text-muted); text-decoration: underline; }
.recaptcha-notice a:hover { color: var(--text-dim); }

.grecaptcha-badge { visibility: hidden; position: fixed; }

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .nav-logo { font-size: 1rem; display: block; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.85rem; color: var(--text-muted); max-width: 25ch; line-height: 1.75; }

.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul a {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-bottom p { font-size: 0.75rem; color: var(--text-muted); }
.footer-bottom-links { display: flex; gap: 2rem; }
.footer-bottom-links a {
  font-size: 0.75rem;
  color: var(--text-muted);
  transition: color var(--transition);
}
.footer-bottom-links a:hover { color: var(--white); }

/* ── DIVIDER ── */
.divider {
  width: 40px;
  height: 1px;
  background: var(--accent);
  margin: 2rem 0;
}

/* ── MOBILE NAV ── */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg);
  z-index: 99;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: var(--text);
  transition: color var(--transition);
}
.mobile-nav a:hover { color: var(--accent); }
.mobile-nav-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  padding: 0.5rem;
}

/* ── FADE IN ── */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── STORY PAGE PHOTOS ── */
.story-photo-mountain {
  width: 100%;
  height: 500px;
  object-fit: cover;
  object-position: center 40%;
  display: block;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  filter: brightness(0.75) saturate(0.85);
}
.story-photo-cafe {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  object-position: center top;
  display: block;
  border-radius: var(--radius-lg);
  filter: brightness(0.8) saturate(0.8);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .apps-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: 1fr 1fr; }
  .product-solution { grid-template-columns: 1fr; gap: 3rem; }
  .product-visual { order: -1; }
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 240px 240px;
  }
  .gallery-item:nth-child(1) { grid-column: span 1; }
  .gallery-item:nth-child(6) { grid-column: span 1; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .section { padding: 7rem 0; }
  .product-section { padding: 7rem 0; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  h1 { font-size: clamp(2.4rem, 10vw, 3.5rem); }
  .apps-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .stats-row { flex-wrap: wrap; }
  .stat-item { flex: 0 0 45%; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, 200px);
  }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-bottom { flex-direction: column; gap: 1rem; text-align: center; }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; }
  .section { padding: 5rem 0; }
  .product-section { padding: 5rem 0; }
  .product-problem { margin-bottom: 3rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  nav { padding: 1.2rem 1.25rem; }
  .apps-grid { grid-template-columns: 1fr; }
  .story-photo-mountain { height: 300px; }
  .story-photo-cafe { min-height: 300px; }
}
