/* ================================================================
   iPhone Duo design system — refero.design style a73148b9
   ================================================================ */

:root {
  /* Colors from refero palette */
  --apple-blue: #0066cc;
  --pricing-blue: #0071e3;
  --launch-orange: #b64400;
  --ink: #1d1d1f;
  --slate: #707070;
  --steel: #86868b;
  --hairline: #d6d6d6;
  --control-gray: #e6e6e8;
  --studio-mist: #f5f5f7;
  --paper-frost: #fafafc;
  --gallery-white: #ffffff;

  /* Spacing — refero: base 4px, section 90px, card 28px, element 20px */
  --s-base: 4px;
  --s-section: 90px;
  --s-card: 28px;
  --s-element: 20px;

  /* Border radius — refero: links 10px, nav 20px, cards/images 28px, pills 36px, inputs 980px */
  --r-link: 10px;
  --r-nav: 20px;
  --r-card: 28px;
  --r-pill: 36px;

  /* Navigation */
  --nav-h: 48px;

  /* Font families */
  --font-display: "Inter", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Inter", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

/* ================================================================
   Reset & Base
   ================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  background: var(--gallery-white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.47;
  font-weight: 400;
  letter-spacing: -0.37px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  padding-top: var(--nav-h);
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: var(--apple-blue);
  text-decoration: none;
  transition: opacity 0.15s ease;
}
a:hover { opacity: 0.7; }
a:focus-visible {
  outline: 2px solid var(--apple-blue);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -999px;
  left: -999px;
  z-index: 9999;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--gallery-white);
  border-radius: var(--r-link);
}
.skip-link:focus { top: 10px; left: 10px; }

/* ================================================================
   Typography — refero scale
   ================================================================ */
.hero-display {
  font-family: var(--font-display);
  font-size: 80px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: var(--ink);
}

.feature-heading {
  font-size: 40px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: var(--ink);
  margin-bottom: var(--s-element);
}

.chip-heading {
  font-size: 64px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.96px;
  color: var(--gallery-white);
  margin-bottom: 24px;
}

.hero-tagline {
  font-size: 21px;
  font-weight: 400;
  line-height: 1.38;
  letter-spacing: 0.23px;
  color: var(--slate);
  margin-top: 8px;
}

.body-copy {
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.37px;
  color: var(--slate);
  max-width: 600px;
  margin-inline: auto;
}

.chip-copy {
  font-size: 21px;
  line-height: 1.38;
  letter-spacing: -0.37px;
  color: var(--paper-frost);
  max-width: 700px;
  margin-inline: auto;
  margin-bottom: 48px;
}

.kicker {
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
  color: var(--launch-orange);
  margin-bottom: 10px;
}

.kicker--dark {
  color: var(--apple-blue);
}

.section-kicker {
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.23px;
  color: var(--slate);
  margin-bottom: 12px;
}

.price {
  font-size: 17px;
  color: var(--slate);
  margin-top: 12px;
}

.card-title {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.21;
  letter-spacing: 0.23px;
  color: var(--ink);
  margin-bottom: 8px;
}

/* ================================================================
   Buttons & Actions
   ================================================================ */
.pill {
  display: inline-block;
  padding: 11px 22px;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0;
  text-align: center;
  border-radius: var(--r-pill);
  transition: all 0.2s ease;
}

.pill--filled {
  background: var(--pricing-blue);
  color: var(--gallery-white);
}
.pill--filled:hover {
  background: #005bb5;
  opacity: 1;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 17px;
  font-weight: 500;
  color: var(--apple-blue);
}

/* ================================================================
   Navigation
   ================================================================ */
.gnav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  z-index: 1000;
  color: var(--paper-frost);
}

.gnav-inner {
  max-width: 1440px;
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.gnav-logo svg {
  fill: var(--paper-frost);
  display: block;
}

.gnav-links {
  display: flex;
  gap: 28px;
  margin-left: auto;
}
.gnav-links a {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.12px;
  color: var(--paper-frost);
}

.gnav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.gnav-icon {
  color: var(--paper-frost);
  padding: 4px;
}

.gnav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 20px;
  height: 20px;
  padding: 0;
}
.gnav-burger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--paper-frost);
  transition: all 0.25s ease;
}

@media (max-width: 768px) {
  .gnav-links { display: none; }
  .gnav-burger { display: flex; }
}

/* ================================================================
   Promo bar
   ================================================================ */
.promo-bar {
  background: var(--studio-mist);
  padding: 12px 22px;
  text-align: center;
}
.promo-bar p {
  font-size: 14px;
  line-height: 1.47;
  letter-spacing: -0.22px;
  color: var(--ink);
}
.promo-bar a {
  color: var(--apple-blue);
  font-weight: 500;
}

/* ================================================================
   Hero
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 50px 22px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--gallery-white);
}

.hero-copy {
  z-index: 2;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 22px;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
}

/* Folding device visual */
.device-stage {
  position: relative;
  width: 100%;
  max-width: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1800px;
  margin-top: 0;
  flex: 1;
}

.device {
  display: flex;
  transform-style: preserve-3d;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.14));
}

.device-half {
  width: 150px;
  height: 320px;
  background: linear-gradient(155deg, #4a4a4d 0%, #2a2a2c 45%, #38383a 100%);
  border-radius: var(--r-card);
  position: relative;
  transform-origin: center right;
  transition: transform 1.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.device-half--left {
  transform-origin: center right;
}

.device-half--right {
  transform-origin: center left;
  transform: rotateY(-5deg);
}

.device-hinge {
  width: 8px;
  height: 320px;
  background: linear-gradient(90deg, #555 0%, #777 50%, #555 100%);
  border-radius: 3px;
  position: relative;
  z-index: 5;
}

.device-screen {
  position: absolute;
  inset: 8px;
  border-radius: calc(var(--r-card) - 6px);
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1c 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-glow {
  position: absolute;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle at 35% 35%, rgba(0,102,204,0.4), rgba(0,113,227,0.25), transparent 65%);
  filter: blur(32px);
  animation: glowPulse 6s ease-in-out infinite;
}

.screen-glow--2 {
  background: radial-gradient(circle at 65% 65%, rgba(182,68,0,0.35), rgba(0,102,204,0.2), transparent 65%);
  animation-delay: 1.2s;
}

@keyframes glowPulse {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

.screen-widget {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--paper-frost);
  font-weight: 600;
  z-index: 2;
}

.screen-apps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 20px;
  z-index: 2;
}
.screen-apps span {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.15);
  border-radius: 9px;
  backdrop-filter: blur(8px);
}

.device-shadow {
  position: absolute;
  bottom: -40px;
  width: 360px;
  height: 24px;
  background: radial-gradient(ellipse, rgba(0,0,0,0.18), transparent 70%);
  filter: blur(12px);
}

/* ================================================================
   Story
   ================================================================ */
.story {
  padding: var(--s-section) 22px;
  text-align: center;
  background: var(--gallery-white);
}

.story-block {
  max-width: 800px;
  margin: 0 auto;
}

.story-block h2 {
  margin-bottom: 24px;
}

/* ================================================================
   Fold band — Studio Mist background
   ================================================================ */
.fold-band {
  background: var(--studio-mist);
  padding: var(--s-section) 22px;
}

.band-inner {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.fold-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-element);
  margin-top: 48px;
}

.feature-card {
  background: var(--gallery-white);
  border-radius: var(--r-card);
  padding: var(--s-card);
  text-align: left;
}

.card-media {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-element);
}

.fold-viz {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--steel), var(--slate));
  border-radius: 16px;
  position: relative;
  transition: transform 0.5s ease;
}

.fold-viz--closed {
  width: 60px;
  height: 120px;
  border-radius: 10px;
}

.fold-viz--half {
  transform: perspective(400px) rotateY(-20deg);
}

.fold-viz--open::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--hairline);
}

/* ================================================================
   Chip section — black
   ================================================================ */
.chip-section {
  background: var(--ink);
  color: var(--gallery-white);
  padding: var(--s-section) 22px;
  text-align: center;
}

.chip-inner {
  max-width: 1000px;
  margin: 0 auto;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-element);
  margin-top: 48px;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 56px;
  font-weight: 600;
  line-height: 1;
  color: var(--gallery-white);
  margin-bottom: 8px;
}

.stat span {
  font-size: 17px;
  font-weight: 500;
  color: var(--paper-frost);
}

/* ================================================================
   Specs
   ================================================================ */
.specs {
  padding: var(--s-section) 22px;
  background: var(--gallery-white);
}

.specs-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.spec-list {
  margin-top: 48px;
  border-top: 1px solid var(--hairline);
}

.spec-row {
  display: flex;
  justify-content: space-between;
  padding: 20px 0;
  border-bottom: 1px solid var(--hairline);
}

.spec-row dt {
  font-weight: 600;
  color: var(--ink);
}

.spec-row dd {
  text-align: right;
  color: var(--slate);
}

/* ================================================================
   Services
   ================================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-element);
  padding: var(--s-section) 22px;
  max-width: 1200px;
  margin: 0 auto;
  background: var(--gallery-white);
}

.svc {
  background: var(--studio-mist);
  border-radius: var(--r-card);
  padding: var(--s-card);
}

.svc h3 {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.17;
  color: var(--ink);
  margin-bottom: 12px;
}

.svc p {
  font-size: 17px;
  line-height: 1.47;
  color: var(--slate);
  margin-bottom: 16px;
}

/* ================================================================
   Footer
   ================================================================ */
.footer {
  background: var(--studio-mist);
  padding: 32px 22px;
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-note {
  font-size: 12px;
  line-height: 1.47;
  letter-spacing: -0.22px;
  color: var(--slate);
  margin-bottom: 24px;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.footer-cols h4 {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.12px;
  color: var(--ink);
  margin-bottom: 10px;
}

.footer-cols a {
  display: block;
  font-size: 14px;
  line-height: 1.8;
  color: var(--slate);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
  color: var(--slate);
}

.footer-legal {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-legal a {
  color: var(--slate);
}

/* ================================================================
   Responsive
   ================================================================ */
@media (max-width: 768px) {
  .hero-display { font-size: 48px; letter-spacing: -0.72px; }
  .feature-heading { font-size: 32px; }
  .chip-heading { font-size: 40px; letter-spacing: -0.6px; }
  .device-half { width: 140px; height: 300px; }
  .device-hinge { height: 300px; }
  .fold-grid { grid-template-columns: 1fr; }
  .stat strong { font-size: 44px; }
  .spec-row { flex-direction: column; gap: 8px; }
  .spec-row dd { text-align: left; }
  .footer-bottom { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ================================================================
   Animations
   ================================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(40px);
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
  }
}
