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

:root {
  --brand:        #f57c00;
  --brand-dark:   #e65100;
  --brand-light:  #fff3e0;
  --text:         #1a1a2e;
  --muted:        #6b7280;
  --surface:      #ffffff;
  --bg:           #fafaf8;
  --border:       #f0ece6;
  --radius:       16px;
  --radius-sm:    10px;
  --shadow-sm:    0 2px 8px rgba(0,0,0,.06);
  --shadow-md:    0 8px 32px rgba(0,0,0,.10);
  --shadow-lg:    0 20px 60px rgba(0,0,0,.14);
  --font:         'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ─── Header ───────────────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-wordmark {
  font-family: 'Averta PE', 'Averta', sans-serif;
  font-weight: 900;
  font-size: 30px;
  color: var(--brand);
  letter-spacing: -.01em;
  line-height: 1;
}

.logo-img {
  height: 52px;
  width: auto;
  display: block;
}

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  padding: 96px 0 80px;
  background: linear-gradient(160deg, #fff 0%, var(--brand-light) 100%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
}

.badge {
  display: inline-block;
  background: var(--brand);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}

.highlight {
  color: var(--brand);
  position: relative;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 40px;
}

/* ─── Store Buttons ────────────────────────────────────── */
.store-buttons {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.store-btn-img {
  display: inline-block;
  transition: transform .18s ease, opacity .18s ease;
}

.store-btn-img:hover {
  transform: translateY(-2px);
  opacity: .88;
}

.store-badge {
  height: 52px;
  width: auto;
  display: block;
}

/* ─── iPhone 16 Frame ──────────────────────────────────── */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.iphone16 {
  position: relative;
  width: 264px;
  /* Brushed aluminum - iPhone 16 Black */
  background:
    linear-gradient(105deg,
      #3a3a3c 0%,
      #2c2c2e 18%,
      #1c1c1e 36%,
      #2a2a2c 54%,
      #1e1e20 72%,
      #252527 100%);
  border-radius: 48px;
  padding: 8px 8px 12px;
  box-shadow:
    /* inner top highlight */
    inset 0 1px 0 rgba(255,255,255,.13),
    /* inner bottom shadow */
    inset 0 -1px 0 rgba(0,0,0,.5),
    /* inner side highlights */
    inset  1px 0 0 rgba(255,255,255,.06),
    inset -1px 0 0 rgba(255,255,255,.06),
    /* outer edge */
    0 0 0 1px rgba(0,0,0,.8),
    /* elevation shadows */
    0 4px  12px rgba(0,0,0,.25),
    0 20px 50px rgba(0,0,0,.35),
    0 40px 90px rgba(0,0,0,.25);
  transform: rotate(2deg);
  transition: transform .4s cubic-bezier(.22,.68,0,1.2),
              box-shadow .4s ease;
  flex-shrink: 0;
}

.iphone16:hover {
  transform: rotate(0deg) scale(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.13),
    inset 0 -1px 0 rgba(0,0,0,.5),
    inset  1px 0 0 rgba(255,255,255,.06),
    inset -1px 0 0 rgba(255,255,255,.06),
    0 0 0 1px rgba(0,0,0,.8),
    0 6px  16px rgba(0,0,0,.3),
    0 28px 70px rgba(0,0,0,.4),
    0 60px 120px rgba(0,0,0,.3);
}

/* ── Shared button base ── */
.ip16-btn {
  position: absolute;
  /* Slightly lighter than body to look like same metal, different face */
  background: linear-gradient(90deg, #2e2e30, #3c3c3e 50%, #2a2a2c);
  border-radius: 2px 0 0 2px;
}

/* ── LEFT SIDE buttons ── */
/* Action button — pill-shaped, above volume, iPhone 16 exclusive */
.ip16-action {
  left: -4px;
  top: 108px;
  width: 4px;
  height: 32px;
  border-radius: 2px 0 0 2px;
  background: linear-gradient(90deg, #444, #555 50%, #3a3a3a);
}

.ip16-vol-up {
  left: -4px;
  top: 156px;
  width: 4px;
  height: 46px;
  border-radius: 2px 0 0 2px;
}

.ip16-vol-down {
  left: -4px;
  top: 212px;
  width: 4px;
  height: 46px;
  border-radius: 2px 0 0 2px;
}

/* ── RIGHT SIDE buttons ── */
/* Power / Side button */
.ip16-power {
  right: -4px;
  top: 148px;
  width: 4px;
  height: 68px;
  border-radius: 0 2px 2px 0;
}

/* ── USB-C port (bottom center) ── */
.ip16-usbc {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ip16-usbc-port {
  display: block;
  width: 28px;
  height: 7px;
  background: #0a0a0a;
  border-radius: 4px;
  box-shadow:
    inset 0 1px 2px rgba(0,0,0,.8),
    0 1px 0 rgba(255,255,255,.05);
}

/* ── Screen ── */
.ip16-screen {
  position: relative;
  background: #000;
  border-radius: 42px;
  overflow: hidden;
  /* thin inner bezel ring */
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

/* ── Dynamic Island ── */
.ip16-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 20px;
  background: #000;
  border-radius: 12px;
  z-index: 10;
  box-shadow: 0 0 0 1px #1a1a1a;
}

.app-screenshot {
  width: 100%;
  height: auto;
  display: block;
}
/* ─── Dual phones ──────────────────────────────────────── */
.dual-phones {
  position: relative;
  width: 420px;
  height: 540px;
  flex-shrink: 0;
}

.dual-phones .iphone16 {
  position: absolute;
  /* reset the features section tilt — each phone gets its own */
  transform: none;
}

.dual-phones .iphone16:hover {
  transform: scale(1.03);
  z-index: 10;
}

/* Back phone: offset left and rotated counter-clockwise */
.phone-back {
  top: 40px;
  left: 0;
  transform: rotate(-6deg) !important;
  z-index: 1;
  opacity: .92;
}

.phone-back:hover {
  transform: rotate(-6deg) scale(1.03) !important;
  z-index: 10;
  opacity: 1;
}

/* Front phone: offset right and rotated clockwise, sits on top */
.phone-front {
  top: 0;
  left: 158px;
  transform: rotate(4deg) !important;
  z-index: 2;
}

.phone-front:hover {
  transform: rotate(4deg) scale(1.03) !important;
  z-index: 10;
}
/* ─── Features ─────────────────────────────────────────── */
.features {
  padding: 96px 0 140px;
  background: var(--surface);
}

/* Reversed two-column: phone left, text right */
.hero-inner--reverse {
  direction: rtl;
}
.hero-inner--reverse > * {
  direction: ltr;
}

/* Tilt phone the other way for variety */
.features .iphone16 {
  transform: rotate(-2deg);
}
.features .iphone16:hover {
  transform: rotate(0deg) scale(1.03);
}

/* Feature bullet list */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  color: var(--text);
  line-height: 1.5;
}

.feature-list-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ─── Contact ──────────────────────────────────────────── */
.contact {
  padding: 96px 0;
  background: var(--bg);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 64px;
  align-items: start;
}

.contact-text h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 16px;
  color: var(--text);
}

.contact-text p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.contact-email-line {
  font-size: .95rem !important;
}

.contact-email-line a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.contact-email-line a:hover {
  text-decoration: underline;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--surface);
  padding: 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: .02em;
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: .95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color .2s;
  resize: vertical;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--brand);
}

.contact-submit {
  align-self: flex-start;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 14px 32px;
  border-radius: 99px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, transform .15s;
}

.contact-submit:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.contact-submit:active {
  transform: translateY(0);
}

/* ─── Footer ───────────────────────────────────────────── */
.footer {
  padding: 28px 0;
  background: var(--text);
  color: rgba(255,255,255,.5);
  text-align: center;
  font-size: .85rem;
}

.footer-contact {
  margin-top: 6px;
}

.footer-contact a {
  color: rgba(255,255,255,.7);
  text-decoration: none;
}

.footer-contact a:hover {
  color: #fff;
  text-decoration: underline;
}

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 768px) {
  body { overflow-x: hidden; }

  .logo-img { height: 42px; }

  .hero { padding: 56px 0 48px; overflow: hidden; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-subtitle { max-width: 100%; }

  .store-buttons { justify-content: center; }

  .hero-visual { order: 1; }

  /* Features: stack + centre all text */
  .features { padding: 72px 0 96px; overflow: hidden; }
  .features .hero-visual { order: 1; }
  .features .hero-inner--reverse { direction: ltr; }
  .features .hero-content { text-align: center; }

  /* Single phone sizing (scale ≈ 0.80 of 264px) */
  .iphone16      { width: 210px; border-radius: 40px; }
  .ip16-screen   { border-radius: 34px; }
  .ip16-island   { width: 58px; height: 16px; top: 9px; }
  .ip16-action   { top: 86px;  height: 24px; }
  .ip16-vol-up   { top: 122px; height: 36px; }
  .ip16-vol-down { top: 167px; height: 36px; }
  .ip16-power    { top: 116px; height: 52px; }

  /* Dual-phones container — fits two 210px-wide phones */
  .dual-phones { width: 282px; height: 430px; }
  .phone-back  { top: 28px; left: 0; }
  .phone-front { top: 0;    left: 72px; }  /* 72 + 210 = 282 ✓ */

  /* Contact */
  .contact-inner  { grid-template-columns: 1fr; gap: 40px; }
  .contact-form   { padding: 28px 20px; }
  .contact-submit { align-self: stretch; text-align: center; }
}

@media (max-width: 480px) {
  .logo-img { height: 36px; }
  .container { padding-inline: 18px; }

  .store-buttons { flex-direction: row; justify-content: center; flex-wrap: nowrap; gap: 10px; }
  .store-badge   { height: 44px; width: auto; }

  /* Phone sizing (scale ≈ 0.72 of 264px) */
  .iphone16      { width: 190px; border-radius: 36px; }
  .ip16-screen   { border-radius: 30px; }
  .ip16-island   { width: 52px; height: 15px; top: 8px; }
  .ip16-action   { top: 78px;  height: 22px; }
  .ip16-vol-up   { top: 110px; height: 32px; }
  .ip16-vol-down { top: 150px; height: 32px; }
  .ip16-power    { top: 105px; height: 48px; }

  /* Dual-phones container */
  .dual-phones { width: 256px; height: 392px; }
  .phone-back  { top: 25px; left: 0; }
  .phone-front { top: 0;    left: 66px; }  /* 66 + 190 = 256 ✓ */
}
