/* ========================================
   Sections — Light Theme
   ======================================== */

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg) var(--gutter);
  background: rgba(246, 243, 238, 0.6);
  backdrop-filter: blur(12px) saturate(1.3);
  -webkit-backdrop-filter: blur(12px) saturate(1.3);
  transition: background var(--duration-base) var(--ease-out),
              box-shadow var(--duration-base) var(--ease-out),
              transform var(--duration-base) var(--ease-out),
              padding var(--duration-base) var(--ease-out);
}

.nav.scrolled {
  background: rgba(246, 243, 238, 0.92);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: 0 1px 0 var(--border);
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.nav.hidden {
  transform: translateY(-110%);
}

.nav-logo {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-primary);
  cursor: none;
}

.nav-logo:hover {
  color: var(--accent);
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: none;
  position: relative;
  padding: var(--space-2xs) 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width var(--duration-base) var(--ease-out);
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--accent);
}

.nav-links a.active::after {
  width: 100%;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: none;
  padding: var(--space-xs);
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all var(--duration-base) var(--ease-out);
  transform-origin: center;
}

.nav-toggle.open span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.nav-toggle.open span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav-mobile {
  position: fixed;
  inset: 0;
  background: rgba(246, 243, 238, 0.97);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-base) var(--ease-out);
}

.nav-mobile.open {
  opacity: 1;
  visibility: visible;
}

.nav-mobile a {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  cursor: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.nav-mobile a:hover {
  color: var(--accent);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--space-4xl) + 2rem) var(--gutter) var(--space-3xl);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}


.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  will-change: transform;
}

.orb-1 {
  width: clamp(300px, 40vw, 550px);
  height: clamp(300px, 40vw, 550px);
  background: var(--accent);
  opacity: 0.15;
  top: 15%;
  left: 5%;
  animation: float-1 22s ease-in-out infinite;
}

.orb-2 {
  width: clamp(250px, 35vw, 450px);
  height: clamp(250px, 35vw, 450px);
  background: var(--cherry);
  opacity: 0.1;
  bottom: 10%;
  right: 10%;
  animation: float-2 26s ease-in-out infinite;
}

.orb-3 {
  width: clamp(200px, 30vw, 400px);
  height: clamp(200px, 30vw, 400px);
  background: var(--sito);
  opacity: 0.1;
  top: 55%;
  left: 45%;
  animation: float-3 19s ease-in-out infinite;
}

@keyframes float-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(60px, -40px) scale(1.05); }
  50% { transform: translate(-30px, 50px) scale(0.95); }
  75% { transform: translate(40px, 20px) scale(1.02); }
}

@keyframes float-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-50px, 30px) scale(0.98); }
  50% { transform: translate(40px, -60px) scale(1.04); }
  75% { transform: translate(-20px, -20px) scale(1); }
}

@keyframes float-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(70px, -50px) scale(1.06); }
  66% { transform: translate(-40px, 30px) scale(0.96); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 960px;
}

.hero-brand {
  font-family: var(--font-sans);
  font-size: var(--text-xl);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.hero-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: var(--space-lg);
}

.hero-title {
  font-family: var(--font-serif);
  font-size: var(--text-display);
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.05;
  margin-bottom: var(--space-lg);
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line .word {
  display: inline-block;
}

.hero-title .line .char {
  display: inline-block;
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.7;
}

/* ---- Hero 3D Card Gallery ---- */
.hero-cards {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  margin-top: var(--space-xl);
  perspective: 1200px;
}

.hero-card {
  position: relative;
  width: 280px;
  background: var(--surface);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06),
              0 4px 12px rgba(0, 0, 0, 0.03);
  border: 1px solid var(--border);
  cursor: none;
  transform-style: preserve-3d;
  will-change: transform;
  transition: box-shadow 0.4s var(--ease-out);
  text-decoration: none;
  color: inherit;
}

.hero-card:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1),
              0 8px 20px rgba(0, 0, 0, 0.05);
  color: inherit;
}

.hero-card-sito:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1),
              0 8px 20px rgba(0, 0, 0, 0.05),
              0 0 50px rgba(45, 165, 93, 0.08);
}

.hero-card-cherry:hover {
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1),
              0 8px 20px rgba(0, 0, 0, 0.05),
              0 0 50px rgba(217, 68, 102, 0.08);
}

/* Offset cards for visual interest */
.hero-card-sito {
  transform: translateY(0) rotateY(-3deg) rotateX(2deg);
}

.hero-card-cherry {
  transform: translateY(20px) rotateY(3deg) rotateX(2deg);
}

/* Card header with icon + name */
.hero-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-lg) var(--space-lg) 0;
}

.hero-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.hero-card-meta {
  text-align: left;
}

.hero-card-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.2;
}

.hero-card-sito .hero-card-name {
  color: var(--sito);
}

.hero-card-cherry .hero-card-name {
  color: var(--cherry);
}

.hero-card-tagline {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Phone mockup inside card */
.hero-card-phone {
  padding: var(--space-md) var(--space-lg) var(--space-lg);
  display: flex;
  justify-content: center;
}

.hero-card-mockup {
  width: 180px;
  height: 380px;
  border-radius: 32px;
  background: #1A1A1A;
  padding: 3px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12),
              0 2px 8px rgba(0, 0, 0, 0.06),
              inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Side buttons */
.hero-card-mockup::before {
  content: '';
  position: absolute;
  right: -2px;
  top: 75px;
  width: 2px;
  height: 42px;
  background: #2A2A2A;
  border-radius: 0 2px 2px 0;
  z-index: 3;
}

.hero-card-mockup::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 65px;
  width: 2px;
  height: 22px;
  background: #2A2A2A;
  border-radius: 2px 0 0 2px;
  z-index: 3;
  box-shadow: 0 34px 0 #2A2A2A;
}

.hero-card-screen {
  width: 100%;
  height: 100%;
  border-radius: 29px;
  overflow: hidden;
  position: relative;
  background: var(--bg-alt);
}

/* Dynamic Island */
.hero-card-screen::before {
  content: '';
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 58px;
  height: 17px;
  background: #1A1A1A;
  border-radius: 12px;
  z-index: 2;
}

.hero-card-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ---- Products ---- */
.products {
  padding: var(--space-section) var(--gutter);
  position: relative;
}

.products > .section-label {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  display: block;
}

.product {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
  padding: var(--space-3xl) 0;
  border-top: 1px solid var(--border);
}

.product:last-of-type {
  border-bottom: 1px solid var(--border);
}

/* Reverse layout for Cherry */
.product-cherry .product-visual {
  order: -1;
}

/* Product header with logo */
.product-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-sm);
}

.product-logo {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.product-tagline {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-style: italic;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.product-title {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: var(--text-primary);
}

.product-sito .product-title {
  color: var(--sito);
}

.product-cherry .product-title {
  color: var(--cherry);
}

.product-desc {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

/* ---- Store Badges ---- */
.store-badges {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.store-badge {
  height: 44px;
  transition: transform var(--duration-fast) var(--ease-out),
              opacity var(--duration-fast) var(--ease-out);
  cursor: none;
}

.store-badge:hover {
  transform: scale(1.05);
}

.store-badge-placeholder {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  height: 44px;
  padding: 0 var(--space-lg);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ---- Visit Site Buttons ---- */
.product-links {
  display: flex;
  gap: var(--space-md);
  align-items: center;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.8em 1.6em;
  border-radius: var(--radius-full);
  cursor: none;
  transition: all var(--duration-base) var(--ease-out);
  text-decoration: none;
}

.product-sito .btn-visit {
  background: var(--sito);
  color: #fff;
  box-shadow: 0 2px 12px rgba(45, 165, 93, 0.2);
}

.product-sito .btn-visit:hover {
  background: #259B52;
  color: #fff;
  box-shadow: 0 4px 20px rgba(45, 165, 93, 0.35);
  transform: translateY(-2px);
}

.product-cherry .btn-visit {
  background: var(--cherry);
  color: #fff;
  box-shadow: 0 2px 12px rgba(217, 68, 102, 0.2);
}

.product-cherry .btn-visit:hover {
  background: #C83558;
  color: #fff;
  box-shadow: 0 4px 20px rgba(217, 68, 102, 0.35);
  transform: translateY(-2px);
}

.btn-visit .arrow {
  transition: transform var(--duration-fast) var(--ease-out);
}

.btn-visit:hover .arrow {
  transform: translateX(3px);
}

/* ---- iPhone 17 Pro Mockup ---- */
.phone-mockup {
  width: 280px;
  height: 590px;
  border-radius: 46px;
  background: #1A1A1A;
  padding: 4px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15),
              0 8px 20px rgba(0, 0, 0, 0.08),
              inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Side button: power */
.phone-mockup::before {
  content: '';
  position: absolute;
  right: -2px;
  top: 120px;
  width: 3px;
  height: 65px;
  background: #2A2A2A;
  border-radius: 0 2px 2px 0;
  z-index: 3;
}

/* Side button: volume */
.phone-mockup::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 100px;
  width: 3px;
  height: 35px;
  background: #2A2A2A;
  border-radius: 2px 0 0 2px;
  z-index: 3;
  box-shadow: 0 50px 0 #2A2A2A;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 42px;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}

/* Dynamic Island */
.phone-screen::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #1A1A1A;
  border-radius: 14px;
  z-index: 2;
}

.phone-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
  padding: var(--space-xl);
}

.phone-screenshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 42px;
}

/* Sito mockup accent */
.product-sito .phone-mockup {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15),
              0 8px 20px rgba(0, 0, 0, 0.08),
              0 0 0 1px rgba(45, 165, 93, 0.1),
              0 0 80px rgba(45, 165, 93, 0.06);
}

/* Cherry mockup accent */
.product-cherry .phone-mockup {
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15),
              0 8px 20px rgba(0, 0, 0, 0.08),
              0 0 0 1px rgba(217, 68, 102, 0.1),
              0 0 80px rgba(217, 68, 102, 0.06);
}

/* ---- About ---- */
.about {
  padding: var(--space-section) var(--gutter);
  position: relative;
}

.about-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
  margin-top: var(--space-2xl);
}

.about-quote {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.35;
  border-left: 2px solid var(--accent);
  padding-left: var(--space-xl);
}

.about-right p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.about-right p:last-child {
  margin-bottom: 0;
}

/* ---- Stats Marquee ---- */
/* ---- Testimonials ---- */
.testimonials-section {
  padding: var(--space-3xl) 0 var(--space-2xl);
  overflow: hidden;
  position: relative;
}

.testimonials-section > .section-label {
  max-width: var(--max-width);
  margin: 0 auto var(--space-xl);
  padding: 0 var(--gutter);
}

.testimonials {
  display: flex;
  overflow: hidden;
  user-select: none;
  gap: 0;
  position: relative;
}

/* Fade edges */
.testimonials::before,
.testimonials::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}

.testimonials::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), transparent);
}

.testimonials::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), transparent);
}

.testimonials-track {
  display: flex;
  align-items: stretch;
  gap: var(--space-lg);
  animation: scroll-reviews 60s linear infinite;
  flex-shrink: 0;
  padding-right: var(--space-lg);
}

.testimonials:hover .testimonials-track {
  animation-play-state: paused;
}

.review-card {
  width: 320px;
  flex-shrink: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: box-shadow 0.3s var(--ease-out), transform 0.3s var(--ease-out);
  cursor: default;
}

.review-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.review-stars {
  color: #F5A623;
  font-size: var(--text-sm);
  letter-spacing: 2px;
}

.review-title {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.3;
}

.review-body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.review-footer {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  margin-top: var(--space-sm);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border);
}

.review-app-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
}

.review-author {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-primary);
}

.review-source {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-left: auto;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes scroll-reviews {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - var(--space-lg))); }
}

/* ---- Contact ---- */
.contact {
  padding: var(--space-section) var(--gutter);
  text-align: center;
  position: relative;
}

.contact-inner {
  max-width: 700px;
  margin: 0 auto;
}

.contact-title {
  font-family: var(--font-serif);
  font-size: var(--text-4xl);
  font-weight: 400;
  font-style: italic;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: var(--space-lg);
}

.contact-sub {
  color: var(--text-secondary);
  font-size: var(--text-lg);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  color: var(--accent);
  cursor: none;
  padding: var(--space-md) var(--space-xl);
  border: 1px solid var(--accent-glow-strong);
  border-radius: var(--radius-full);
  transition: all var(--duration-base) var(--ease-out);
}

.contact-email:hover {
  color: var(--accent-hover);
  background: var(--accent-glow);
  border-color: var(--accent);
  box-shadow: 0 0 40px var(--accent-glow);
  transform: translateY(-2px);
}

/* ---- Footer ---- */
.footer {
  padding: var(--space-2xl) var(--gutter);
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.footer-logo {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-right {
  display: flex;
  gap: var(--space-xl);
}

.footer-right a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  cursor: none;
  transition: color var(--duration-fast) var(--ease-out);
}

.footer-right a:hover {
  color: var(--accent);
}
