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

:root {
  --bg: #0f0f0f;
  --bg2: #1a1a1a;
  --bg3: #242424;
  --surface: #2a2a2a;
  --border: rgba(255,255,255,0.08);
  --text: #f0f0f0;
  --text2: #a0a0a0;
  --text3: #606060;
  --accent: #4f8ef7;
  --accent2: #9b6ff7;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.3);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --mono: "SF Mono", "Fira Code", monospace;
  --max: 1100px;
  --nav-h: 64px;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== NAV ===== */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  background: rgba(15,15,15,0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-logo { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
.nav-logo .logo-icon { width: 32px; height: 32px; border-radius: 8px; background: linear-gradient(135deg, #4f8ef7, #9b6ff7); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links a { color: var(--text2); font-size: 0.9rem; padding: 6px 12px; border-radius: 8px; transition: all 0.2s; }
.nav-links a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-cta { background: var(--accent) !important; color: #fff !important; font-weight: 600 !important; }
.nav-cta:hover { background: #3a7de8 !important; }

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: calc(var(--nav-h) + 60px) 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at 50% 20%, rgba(79,142,247,0.15) 0%, rgba(155,111,247,0.08) 40%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(79,142,247,0.12); border: 1px solid rgba(79,142,247,0.25);
  border-radius: 100px; padding: 5px 14px;
  font-size: 0.8rem; font-weight: 600; color: var(--accent);
  margin-bottom: 28px; letter-spacing: 0.02em;
}
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse 2s infinite; }
.hero h1 {
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 800; letter-spacing: -0.04em; line-height: 1.05;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 30%, #a0a0a0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero h1 span { background: linear-gradient(135deg, #4f8ef7, #9b6ff7); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p {
  font-size: clamp(1rem, 2.5vw, 1.25rem); color: var(--text2);
  max-width: 560px; margin: 0 auto 40px; line-height: 1.7;
}
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 72px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: 14px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.2s; border: none; text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 24px rgba(79,142,247,0.35); }
.btn-primary:hover { background: #3a7de8; transform: translateY(-1px); box-shadow: 0 6px 28px rgba(79,142,247,0.45); text-decoration: none; color: #fff; }
.btn-secondary { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--bg3); transform: translateY(-1px); text-decoration: none; color: var(--text); }

/* ===== PHONE FRAME MOCKUP ===== */
.hero-phone-wrap {
  display: flex; justify-content: center; align-items: center;
  width: 100%; padding: 0 16px;
}

.hero-phone {
  position: relative;
  width: 300px;
  background: #1c1c1e;
  border-radius: 44px;
  padding: 14px 12px 20px;
  border: 1.5px solid rgba(255,255,255,0.12);
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(0,0,0,0.4), inset 0 1px 0 rgba(255,255,255,0.08);
}

.phone-island {
  width: 80px; height: 24px;
  background: #000;
  border-radius: 20px;
  margin: 0 auto 12px;
}

.phone-screen {
  background: #000;
  border-radius: 32px;
  overflow: hidden;
  padding: 12px;
}

/* 2-column card grid — matches app layout */
.app-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Individual card — matches UntilsyCardView exactly */
.app-card {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 10px;
  height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.app-card:hover { transform: translateY(-3px); }

.app-card-coral  { background: #e8735a; box-shadow: 0 4px 12px rgba(232,115,90,0.4); }
.app-card-blue   { background: #5a9fd4; box-shadow: 0 4px 12px rgba(90,159,212,0.4); }
.app-card-purple { background: #b87de8; box-shadow: 0 4px 12px rgba(184,125,232,0.4); }
.app-card-green  { background: #6ab187; box-shadow: 0 4px 12px rgba(106,177,135,0.4); }

.app-card-coral:hover  { box-shadow: 0 8px 20px rgba(232,115,90,0.5); }
.app-card-blue:hover   { box-shadow: 0 8px 20px rgba(90,159,212,0.5); }
.app-card-purple:hover { box-shadow: 0 8px 20px rgba(184,125,232,0.5); }
.app-card-green:hover  { box-shadow: 0 8px 20px rgba(106,177,135,0.5); }

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.app-card-date {
  font-size: 0.55rem;
  font-weight: 700;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.01em;
  line-height: 1;
}
.app-card-emoji {
  font-size: 1.1rem;
  line-height: 1;
}

.app-card-bottom {
  text-align: center;
}
.app-card-desc {
  font-size: 0.6rem;
  font-weight: 700;
  color: rgba(255,255,255,0.95);
  line-height: 1.2;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-card-countdown {
  display: flex;
  align-items: baseline;
  justify-content: center;
  line-height: 1;
}
.app-card-num {
  font-size: 1.6rem;
  font-weight: 900;
  color: rgba(255,255,255,1);
  letter-spacing: -0.04em;
}
.app-card-unit {
  font-size: 0.55rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}

/* ===== SECTIONS ===== */
section { padding: 100px 24px; }
.container { max-width: var(--max); margin: 0 auto; }
.section-eyebrow { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 16px; }
.section-subtitle { font-size: 1.1rem; color: var(--text2); max-width: 560px; line-height: 1.7; }

/* ===== FEATURES ===== */
.features { background: var(--bg); }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 56px; }
.feature-card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: all 0.3s;
  opacity: 0; transform: translateY(24px);
}
.feature-card.visible { opacity: 1; transform: translateY(0); }
.feature-card:hover { border-color: rgba(79,142,247,0.3); transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.feature-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.02em; }
.feature-card p { color: var(--text2); font-size: 0.95rem; line-height: 1.65; }

/* ===== SCREENSHOTS ===== */
.screenshots { background: var(--bg2); overflow: hidden; }
.screenshots-header { text-align: center; margin-bottom: 56px; }
.screenshots-header .section-subtitle { margin: 0 auto; }
.screenshot-row { display: flex; gap: 20px; overflow-x: auto; padding: 20px 0 40px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.screenshot-row::-webkit-scrollbar { display: none; }
.screenshot-slot {
  flex-shrink: 0; scroll-snap-align: center;
  width: 240px; height: 520px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 32px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--text3); font-size: 0.85rem; text-align: center; padding: 20px;
  transition: all 0.3s;
}
.screenshot-slot:hover { border-color: var(--border); }
.screenshot-slot .slot-icon { font-size: 2.5rem; opacity: 0.4; }
.screenshot-slot img { width: 100%; height: 100%; object-fit: cover; border-radius: 30px; }
.scroll-hint { text-align: center; color: var(--text3); font-size: 0.8rem; margin-top: -20px; }

/* ===== VIDEO ===== */
.video-section { background: var(--bg); }
.video-wrapper {
  position: relative; width: 100%; max-width: 800px; margin: 56px auto 0;
  aspect-ratio: 16/9;
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; overflow: hidden;
}
.video-wrapper::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(79,142,247,0.05), rgba(155,111,247,0.05));
}
.video-placeholder-icon { font-size: 4rem; opacity: 0.4; z-index: 1; }
.video-placeholder-text { color: var(--text3); font-size: 0.9rem; z-index: 1; }
.video-wrapper video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }

/* ===== TESTFLIGHT ===== */
.testflight { background: var(--bg2); text-align: center; }
.testflight-card {
  max-width: 600px; margin: 0 auto;
  background: linear-gradient(135deg, rgba(79,142,247,0.1), rgba(155,111,247,0.1));
  border: 1px solid rgba(79,142,247,0.2);
  border-radius: var(--radius); padding: 60px 40px;
}
.testflight-card h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.testflight-card p { color: var(--text2); margin-bottom: 32px; font-size: 1rem; line-height: 1.7; }
.tf-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border);
  border-radius: 10px; padding: 8px 16px;
  font-size: 0.8rem; color: var(--text2); margin-bottom: 24px;
}

/* ===== FEEDBACK FORM ===== */
.feedback { background: var(--bg); }
.feedback-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.feedback-info h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 16px; }
.feedback-info p { color: var(--text2); line-height: 1.7; margin-bottom: 24px; }
.feedback-contact { display: flex; flex-direction: column; gap: 12px; }
.feedback-contact a { display: flex; align-items: center; gap: 10px; color: var(--text2); font-size: 0.95rem; transition: color 0.2s; }
.feedback-contact a:hover { color: var(--text); text-decoration: none; }
.contact-icon { width: 36px; height: 36px; border-radius: 10px; background: var(--bg3); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }

.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--text2); }
.field input, .field textarea, .field select {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 12px 16px;
  color: var(--text); font-family: var(--font); font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; resize: vertical;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,142,247,0.15);
}
.field input::placeholder, .field textarea::placeholder { color: var(--text3); }
.field textarea { min-height: 120px; }
.form-status { display: none; padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; }
.form-status.success { display: block; background: rgba(75,181,67,0.12); border: 1px solid rgba(75,181,67,0.25); color: #6bc96a; }
.form-status.error { display: block; background: rgba(239,68,68,0.12); border: 1px solid rgba(239,68,68,0.25); color: #f87171; }

/* ===== FOOTER ===== */
footer {
  background: var(--bg); border-top: 1px solid var(--border);
  padding: 48px 24px;
}
.footer-inner { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.footer-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 1rem; }
.footer-logo .logo-icon { width: 28px; height: 28px; border-radius: 7px; background: linear-gradient(135deg, #4f8ef7, #9b6ff7); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.footer-links { display: flex; align-items: center; gap: 24px; }
.footer-links a { color: var(--text2); font-size: 0.875rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
.footer-copy { color: var(--text3); font-size: 0.8rem; }

/* ===== ANIMATIONS ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}
.hero-phone { animation: float 5s ease-in-out infinite; }

.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: 0.1s; }
.fade-up:nth-child(3) { transition-delay: 0.2s; }
.fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  nav { padding: 0 16px; }
  .nav-links { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 40px); }
  .mock-card { width: 130px; height: 165px; }
  .card-2 { left: calc(50% - 110px); }
  .card-3 { left: calc(50% + 110px); }
  .hero-mockup { height: 280px; }
  .features-grid { grid-template-columns: 1fr; }
  .feedback-inner { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-links { flex-wrap: wrap; gap: 16px; }
}
