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

:root {
  /* Backgrounds */
  --bg-white:  #ffffff;
  --bg-gray:   #f5f5f7;
  --bg-dark:   #000000;
  --bg-dark2:  #1d1d1f;

  /* Text */
  --text-dark: #1d1d1f;
  --text-mid:  #424245;
  --text-gray: #6e6e73;
  --text-white:#f5f5f7;

  /* Brand */
  --red:  #e63946;
  --red2: #ff4757;

  /* Misc */
  --border-light: rgba(0,0,0,0.1);
  --border-dark:  rgba(255,255,255,0.1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 18px;
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

/* ===== LOGO IMAGE — removes white bg on dark sections ===== */
.nav-logo-img {
  width: 28px; height: 28px;
  object-fit: contain;
  filter: invert(1) hue-rotate(180deg);
  border-radius: 6px;
}

.hero-logo,
.footer-logo-img {
  filter: invert(1) hue-rotate(175deg) saturate(3) drop-shadow(0 0 24px rgba(230,57,70,.4));
  mix-blend-mode: screen;
}

/* ===== NAV — Apple thin white nav ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 52px;
  background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border-light);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 100%;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
  letter-spacing: -.3px;
}

.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-mid);
  transition: color .15s;
}
.nav-links a:hover { color: var(--text-dark); }

.btn-nav {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 20px;
  background: var(--red);
  color: #fff;
  border-radius: 50px;
  transition: opacity .2s, transform .2s;
  flex-shrink: 0;
}
.btn-nav:hover { opacity: .88; transform: translateY(-1px); }

/* ===== HERO — dark, full height ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background: var(--bg-dark);
  display: flex;
  align-items: center;
  padding: 80px 60px 60px;
  max-width: 100%;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(230,57,70,.18) 0%, transparent 65%);
  top: -200px; left: -200px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(40px);
}

.hero-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 1;
}

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

.hero-logo {
  width: 84px; height: 84px;
  object-fit: contain;
  display: block;
  margin-bottom: 28px;
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  margin-bottom: 18px;
}

.badge-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red2);
  box-shadow: 0 0 8px var(--red2);
  animation: pulse 1.8s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.8); }
}

/* hero title */
.hero-title {
  font-size: clamp(46px, 6vw, 76px);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -2.5px;
  color: #fff;
  margin-bottom: 20px;
  min-height: 2.4em;
}

/* typing */
.typing-wrap {
  display: block;
  background: linear-gradient(135deg, var(--red2) 0%, #ff8c42 50%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.cursor {
  display: inline-block;
  -webkit-text-fill-color: var(--red2);
  animation: blink .75s step-end infinite;
  margin-left: 1px;
}

@keyframes blink {
  0%,100% { opacity:1; }
  50%      { opacity:0; }
}

.hero-sub {
  font-size: 17px;
  color: rgba(255,255,255,.6);
  line-height: 1.75;
  margin-bottom: 36px;
  max-width: 460px;
}

/* hero buttons */
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50px;
  transition: opacity .2s, transform .2s;
}
.btn-hero-primary:hover { opacity: .9; transform: translateY(-1px); }

/* hero phone position */
.hero-phone {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ===== iPHONE MOCKUP ===== */
.iphone {
  position: relative;
  display: inline-block;
  filter: drop-shadow(0 40px 70px rgba(0,0,0,.55));
  transition: transform .4s ease;
}
.iphone:hover { transform: scale(1.015) translateY(-4px); }

/* Left buttons: silent + vol+ + vol- */
.iphone-side-left {
  position: absolute;
  left: -4px;
  top: 100px;
  width: 4px;
  height: 28px;
  background: #3a3a3c;
  border-radius: 3px 0 0 3px;
  /* silent switch */
  box-shadow:
    0 46px 0 0 #3a3a3c,   /* vol+ */
    0 86px 0 0 #3a3a3c;   /* vol- */
}

/* Right button: power */
.iphone-side-right {
  position: absolute;
  right: -4px;
  top: 140px;
  width: 4px;
  height: 64px;
  background: #3a3a3c;
  border-radius: 0 3px 3px 0;
}

/* The frame */
.iphone-body {
  background: linear-gradient(170deg, #2c2c2e 0%, #1a1a1c 100%);
  border-radius: 46px;
  padding: 10px;
  border: 1px solid #3d3d3f;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    inset 0 1px 1px rgba(255,255,255,.12);
}

/* Screen — fixed to real iPhone 15 aspect ratio (19.5:9) */
.iphone-screen {
  position: relative;
  background: #000;
  border-radius: 36px;
  overflow: hidden;
  width: 248px;
  height: 537px;
}

/* Dynamic Island — percentage-based so it scales on mobile */
.iphone-island {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 24px;
  background: #1a1a1c;
  border-radius: 20px;
  z-index: 10;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

/* Crop more from bottom for screens with dark tab bars */
.iphone-screen--crop {
  height: 478px;
}

/* Screens that already have the indicator baked into the screenshot */
.iphone-screen--no-bar::after { display: none; }

/* Home indicator bar — matches real iOS style */
.iphone-screen::after {
  content: '';
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36%;
  height: 5px;
  background: rgba(0, 0, 0, 0.48);
  border-radius: 10px;
  z-index: 20;
}

/* Screenshot — fills screen width, clips from bottom */
.iphone-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ===== LOGOS STRIP ===== */
.logos-strip {
  background: var(--bg-gray);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding: 18px 40px;
}

.logos-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.logos-inner span {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-gray);
}

.logos-inner .divider {
  color: var(--border-light);
  font-weight: 300;
}

/* ===== SECTION HEADER ===== */
.section-header {
  background: var(--bg-white);
  padding: 80px 40px 40px;
  text-align: center;
}

.section-header-inner {
  max-width: 640px;
  margin: 0 auto;
}

/* ===== LABEL TAGS ===== */
.label-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--text-gray);
  margin-bottom: 12px;
}
.label-tag.red { color: var(--red); }

.section-header h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--text-dark);
  margin-bottom: 14px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* ===== FEATURE SECTIONS ===== */
.feature-section {
  padding: 90px 60px;
}

.bg-white { background: var(--bg-white); }
.bg-gray  { background: var(--bg-gray); }

.feature-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 80px;
}

.feature-rev .feature-inner {
  flex-direction: row-reverse;
}

.feature-text {
  flex: 1;
}

.feature-text h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 800;
  letter-spacing: -1.2px;
  color: var(--text-dark);
  line-height: 1.08;
  margin-bottom: 18px;
}

.feature-text h2 em {
  font-style: normal;
  color: var(--red);
}

.feature-text p {
  font-size: 17px;
  color: var(--text-gray);
  line-height: 1.75;
  margin-bottom: 24px;
  max-width: 420px;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.feature-list li {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
  padding-left: 20px;
  position: relative;
}

.feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  background: var(--red);
  border-radius: 50%;
}

.link-cta {
  font-size: 15px;
  font-weight: 700;
  color: var(--red);
  transition: gap .2s, letter-spacing .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.link-cta:hover { gap: 10px; }

.feature-phone {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

/* ===== STATS — dark ===== */
.stats-section {
  background: var(--bg-dark2);
  padding: 64px 40px;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
}

.stat-item { padding: 0 40px; max-width: 200px; text-align: center; }

.stat-icon { font-size: 28px; margin-bottom: 12px; }

.stat-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.3px;
  color: #fff;
}

.stat-label {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  font-weight: 500;
  line-height: 1.5;
  margin-top: 6px;
}

.stat-sep {
  width: 1px;
  height: 60px;
  background: rgba(255,255,255,.1);
}

/* ===== FEAT GRID — dark ===== */
.feat-grid-section {
  background: var(--bg-dark);
  padding: 100px 60px;
}

.feat-grid-inner {
  max-width: 1080px;
  margin: 0 auto;
  text-align: center;
}

.feat-grid-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 12px;
}

.feat-grid-sub {
  font-size: 17px;
  color: rgba(255,255,255,.45);
  margin-bottom: 52px;
}

.feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
}

.feat-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 20px;
  padding: 36px 30px;
  text-align: left;
  transition: background .2s, transform .25s;
}
.feat-card:hover {
  background: rgba(255,255,255,.07);
  transform: translateY(-4px);
}

.feat-card-icon { font-size: 30px; margin-bottom: 18px; }
.feat-card h3 { font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.feat-card p  { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.65; }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-dark2);
  padding: 52px 60px 24px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto 40px;
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.footer-logo-img {
  width: 32px; height: 32px;
  object-fit: contain;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255,255,255,.35);
}

.footer-col { display: flex; flex-direction: column; gap: 10px; }

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  color: rgba(255,255,255,.5);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255,255,255,.4);
  transition: color .2s;
}
.footer-col a:hover { color: rgba(255,255,255,.8); }

.footer-bottom {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,.3);
}

.footer-bottom-links {
  display: flex;
  gap: 20px;
}

.footer-bottom-links a {
  color: rgba(255,255,255,.3);
  font-size: 12px;
  transition: color .2s;
}
.footer-bottom-links a:hover { color: rgba(255,255,255,.6); }

/* ===== CONTACT MODAL ===== */
.contact-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.contact-overlay.open { display: flex; }

.contact-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-dark2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 40px 32px 32px;
  animation: contact-pop .25s ease;
}

@keyframes contact-pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.contact-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.contact-close:hover { background: rgba(255,255,255,.16); color: #fff; }

.contact-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.contact-sub {
  font-size: 13px;
  color: rgba(255,255,255,.45);
  margin-bottom: 24px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: #fff;
  resize: vertical;
  transition: border-color .2s, background .2s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(255,255,255,.35); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(255,255,255,.09);
}

.btn-contact-submit {
  margin-top: 4px;
  padding: 13px 24px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.btn-contact-submit:hover { opacity: .9; transform: translateY(-1px); }
.btn-contact-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.contact-status {
  font-size: 13px;
  text-align: center;
  min-height: 16px;
}
.contact-status.success { color: #4ade80; }
.contact-status.error { color: var(--red2); }

/* ===== SCROLL FADE ===== */
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .btn-nav { margin-left: auto; }
  .hero { padding: 100px 30px 60px; text-align: center; }
  .hero-inner { flex-direction: column; gap: 48px; }
  .hero-content { max-width: 100%; }
  .hero-sub { margin: 0 auto 32px; }
  .hero-btns { justify-content: center; }
  .feature-section { padding: 70px 30px; }
  .feature-inner, .feature-rev .feature-inner { flex-direction: column; gap: 48px; text-align: center; align-items: center; }
  .feature-text p { max-width: 100%; }
  .feature-list li { justify-content: center; }
  .stats-inner { gap: 32px; }
  .stat-item { padding: 0 24px; }
  .stat-sep { height: 40px; }
  .feat-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 28px; }
  .iphone-screen { width: 220px; height: 476px; }
  .iphone-screen--crop { height: 424px; }
}

@media (max-width: 600px) {
  .hero-title { font-size: 40px; letter-spacing: -1.5px; }
  .stats-inner { flex-direction: column; gap: 28px; }
  .stat-sep { width: 60px; height: 1px; }
  .footer-inner { grid-template-columns: 1fr; }
  .logos-inner .divider { display: none; }
  .iphone-screen { width: 200px; height: 433px; }
  .iphone-screen--crop { height: 385px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
