/* ============================================================
   Prime Coast Studio — shared stylesheet
   Tokens and components per PrimeCoastStudio_BrandKit.pdf
   ============================================================ */

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

:root {
  /* Dark scale */
  --night:    #0d0f1c;
  --surface:  #161929;
  --surface2: #1e2235;
  /* Brand green */
  --prime:    #1D9E75;
  --deep:     #0F6E56;
  --forest:   #085041;
  /* Green tints */
  --mist:     #5DCAA5;
  --mist-l:   #9FE1CB;
  --mist-xl:  #E1F5EE;
  /* Light scale */
  --white:    #ffffff;
  --cloud:    #f0f2f8;
  --cloud2:   #e8eaf4;
  /* Neutral */
  --neutral:  #888780;
  --neutral-l:#B4B2A9;
  --neutral-xl:#F1EFE8;

  /* Inter only — brand kit mandates a single typeface. */
  --sans: 'Inter', system-ui, -apple-system, sans-serif;
  --serif: var(--sans);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--night);
  color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  height: 64px;
  background: rgba(13,15,28,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 0.5px solid rgba(29,158,117,0.15);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.nav-logo svg { flex-shrink: 0; }

.nav-divider { width: 0.5px; height: 32px; background: rgba(29,158,117,0.2); }

.nav-wordmark { line-height: 1; }
.nav-wordmark .w1 { font-size: 15px; font-weight: 600; color: var(--white); letter-spacing: -0.3px; display: block; }
.nav-wordmark .w2 { font-size: 15px; font-weight: 300; color: var(--prime); letter-spacing: -0.3px; display: block; }

.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a { font-size: 13px; font-weight: 400; color: var(--neutral-l); text-decoration: none; letter-spacing: 0.2px; transition: color 0.2s; }
.nav-links a:hover { color: var(--prime); }
.nav-links a[aria-current="page"] { color: var(--prime); }

.nav-cta {
  font-size: 13px; font-weight: 500;
  color: var(--forest);
  background: var(--prime);
  border: none;
  padding: 8px 20px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}
.nav-cta:hover { background: var(--mist); }

/* Mobile nav toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--mist-l);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px; font-weight: 500;
  color: var(--forest);
  background: var(--prime);
  border: none;
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover { background: var(--mist); transform: translateY(-1px); }

.btn-secondary {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px; font-weight: 500;
  color: var(--prime);
  background: transparent;
  border: 1px solid var(--prime);
  padding: 13px 27px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover { background: var(--prime); color: var(--forest); }

.btn-dark {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px; font-weight: 500;
  color: var(--mist-l);
  background: var(--night);
  border: 1px solid rgba(29,158,117,0.4);
  padding: 13px 27px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-dark:hover { border-color: var(--prime); color: var(--prime); }

.btn-ghost {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px; font-weight: 400;
  color: var(--mist-l);
  background: transparent;
  border: 0.5px solid rgba(29,158,117,0.4);
  padding: 14px 28px;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost:hover { border-color: var(--prime); color: var(--prime); }

.btn-sm { font-size: 13px; padding: 10px 20px; }

/* Coming soon — Play Store not published yet (inert, muted) */
.is-soon { pointer-events: none; cursor: default; }
.nav-links a.is-soon,
.footer-right a.is-soon { color: var(--neutral); }
.nav-cta.is-soon,
.btn-primary.is-soon,
.btn-ghost.is-soon {
  background: transparent;
  color: var(--neutral);
  border: 0.5px solid rgba(136,135,128,0.35);
  transform: none;
}

/* ── BADGES & PILLS ── */
.badge {
  display: inline-block;
  font-size: 10px; font-weight: 500;
  letter-spacing: 0.5px;
  padding: 4px 12px;
  border-radius: 20px;
}
.badge-studio  { color: var(--white);   background: var(--prime); }
.badge-new     { color: var(--forest);  background: var(--mist-l); }
.badge-premium { color: var(--mist);    background: var(--night); border: 0.5px solid rgba(29,158,117,0.3); }
.badge-beta    { color: var(--mist-l);  background: var(--forest); }
.badge-free    { color: var(--deep);    background: var(--mist-xl); }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 48px 80px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(29,158,117,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,158,117,1) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-lines {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 240px;
  opacity: 0.12;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px; font-weight: 500;
  color: var(--mist);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 32px;
  position: relative;
}
.hero-tag::before {
  content: '';
  display: block;
  width: 24px; height: 1px;
  background: var(--prime);
}
.hero h1 {
  font-size: clamp(48px, 7vw, 84px);
  font-weight: 600;          /* Inter Display */
  line-height: 1.05;
  letter-spacing: -0.5px;
  max-width: 720px;
  margin-bottom: 28px;
  position: relative;
}
.hero h1 .accent { color: var(--prime); }   /* emphasis, no italic */
.hero-sub {
  font-size: 17px; font-weight: 300;
  color: var(--neutral-l);
  max-width: 480px;
  line-height: 1.7;
  margin-bottom: 48px;
  position: relative;
}
.hero-actions { display: flex; gap: 14px; align-items: center; position: relative; flex-wrap: wrap; }
.hero-scroll {
  position: absolute;
  bottom: 40px; left: 48px;
  font-size: 11px; font-weight: 400;
  color: var(--neutral);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-scroll::after { content: ''; display: block; width: 40px; height: 0.5px; background: var(--neutral); }

/* Compact hero for inner pages */
.page-hero {
  padding: 140px 48px 64px;
  position: relative;
  overflow: hidden;
}
.page-hero h1 {
  font-size: clamp(40px, 5.5vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.5px;
  max-width: 760px;
  margin-bottom: 20px;
}
.page-hero h1 .accent { color: var(--prime); }
.page-hero .hero-sub { margin-bottom: 0; }

/* ── SECTION SHARED ── */
section { padding: 96px 48px; }
.container { max-width: 1100px; margin: 0 auto; }
.section-tag {
  font-size: 10px; font-weight: 500;
  color: var(--prime);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin-bottom: 20px;
}
.section-sub {
  font-size: 16px; font-weight: 300;
  color: var(--neutral-l);
  max-width: 520px;
  line-height: 1.7;
}

/* ── ABOUT ── */
.about {
  background: var(--surface);
  border-top: 0.5px solid rgba(29,158,117,0.12);
  border-bottom: 0.5px solid rgba(29,158,117,0.12);
}
.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.about-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.stat-card { background: var(--surface2); padding: 28px 24px; }
.stat-card:first-child  { border-radius: 10px 0 0 0; }
.stat-card:nth-child(2) { border-radius: 0 10px 0 0; }
.stat-card:nth-child(3) { border-radius: 0 0 0 10px; }
.stat-card:last-child   { border-radius: 0 0 10px 0; }
.stat-num { font-size: 42px; font-weight: 600; color: var(--prime); line-height: 1; margin-bottom: 6px; letter-spacing: -0.5px; }
.stat-label { font-size: 12px; font-weight: 400; color: var(--neutral-l); line-height: 1.5; }

/* ── APPS ── */
.apps { max-width: 1100px; margin: 0 auto; }
.apps-header { margin-bottom: 56px; }
.app-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border-radius: 16px;
  overflow: hidden;
  border: 0.5px solid rgba(29,158,117,0.15);
  margin-bottom: 24px;
}
.app-card-content { padding: 48px; }
.app-card-content h3 { font-size: 32px; font-weight: 600; margin-bottom: 14px; line-height: 1.1; letter-spacing: -0.3px; }
.app-card-content p { font-size: 14px; font-weight: 300; color: var(--neutral-l); line-height: 1.7; margin-bottom: 28px; }
.app-features { list-style: none; margin-bottom: 32px; }
.app-features li { font-size: 13px; color: var(--neutral-l); padding: 5px 0; display: flex; align-items: center; gap: 10px; }
.app-features li::before { content: ''; display: block; width: 5px; height: 5px; border-radius: 50%; background: var(--prime); flex-shrink: 0; }

.app-card-visual {
  background: var(--night);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.app-card-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,158,117,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,158,117,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
}
.app-phone-mockup {
  width: 160px;
  background: var(--surface);
  border-radius: 24px;
  border: 1.5px solid rgba(29,158,117,0.3);
  padding: 16px 12px;
  position: relative;
  z-index: 1;
}
.phone-label { font-size: 8px; color: var(--mist); font-weight: 500; letter-spacing: 1px; text-align: center; margin-bottom: 10px; }
.phone-screen-row { display: flex; gap: 6px; margin-bottom: 6px; }
.phone-card { flex: 1; background: var(--surface2); border-radius: 6px; padding: 8px; border-left: 2px solid var(--prime); }
.phone-card-line { height: 4px; background: rgba(29,158,117,0.4); border-radius: 2px; margin-bottom: 4px; }
.phone-card-line:last-child { width: 60%; margin: 0; }
.phone-balls { display: flex; gap: 3px; margin-top: 8px; justify-content: center; }
.phone-ball {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(29,158,117,0.3);
  border: 1px solid var(--prime);
  font-size: 7px; font-weight: 600;
  color: var(--prime);
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone-bonus { border-color: var(--mist); color: var(--mist); background: rgba(93,202,165,0.18); }
.phone-bars { margin-top: 10px; background: var(--surface2); border-radius: 5px; padding: 6px; display: flex; gap: 3px; align-items: flex-end; height: 36px; }
.phone-bars span { flex: 1; background: rgba(29,158,117,0.4); border-radius: 3px; }

/* "Up next" placeholder card */
.upnext {
  background: var(--surface);
  border-radius: 12px;
  border: 0.5px dashed rgba(29,158,117,0.2);
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.upnext p { font-size: 15px; color: var(--neutral-l); font-weight: 300; }

/* ── VALUES ── */
.values { background: var(--surface); }
.values-inner { max-width: 1100px; margin: 0 auto; }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin-top: 56px; }
.value-card { background: var(--night); padding: 36px 32px; }
.value-card:first-child { border-radius: 10px 0 0 10px; }
.value-card:last-child  { border-radius: 0 10px 10px 0; }
.value-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(29,158,117,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.value-card h4 { font-size: 20px; font-weight: 600; margin-bottom: 10px; color: var(--prime); letter-spacing: -0.2px; }
.value-card p { font-size: 13px; font-weight: 300; color: var(--neutral-l); line-height: 1.7; }

/* ── FEATURE GRID (LottoPrime) ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.feature-card {
  background: var(--surface);
  border: 0.5px solid rgba(29,158,117,0.15);
  border-radius: 12px;
  padding: 32px 28px;
}
.feature-card .value-icon { margin-bottom: 18px; }
.feature-card h4 { font-size: 17px; font-weight: 500; margin-bottom: 10px; letter-spacing: -0.2px; }
.feature-card p { font-size: 13px; font-weight: 300; color: var(--neutral-l); line-height: 1.7; }

/* ── CONTACT ── */
.contact { max-width: 600px; margin: 0 auto; text-align: center; }
.contact .section-title { margin-bottom: 14px; }
.contact .section-sub { margin: 0 auto 40px; text-align: center; }
.contact-form { display: flex; flex-direction: column; gap: 12px; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field label { font-size: 11px; font-weight: 500; color: var(--neutral); letter-spacing: 0.5px; text-transform: uppercase; }
.form-field input, .form-field textarea {
  font-family: var(--sans);
  font-size: 14px; font-weight: 300;
  color: var(--white);
  background: var(--surface);
  border: 0.5px solid rgba(29,158,117,0.2);
  border-radius: 8px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.form-field input:focus, .form-field textarea:focus { border-color: var(--prime); }
.form-field textarea { height: 100px; }
.form-note { font-size: 12px; color: var(--neutral); margin-top: 4px; }

/* Studio info list (contact / about) */
.studio-info { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin-top: 8px; }
.studio-info dt { font-size: 13px; color: var(--neutral); }
.studio-info dd { font-size: 13px; color: var(--white); font-weight: 500; }

/* Prose blocks (about) */
.prose p { font-size: 16px; font-weight: 300; color: var(--neutral-l); line-height: 1.8; margin-bottom: 18px; max-width: 640px; }
.prose p:last-child { margin-bottom: 0; }

/* ── LEGAL PAGES (privacy / terms) ── */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { font-size: 22px; font-weight: 600; color: var(--white); letter-spacing: -0.2px; margin: 44px 0 14px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p { font-size: 15px; font-weight: 300; color: var(--neutral-l); line-height: 1.8; margin-bottom: 16px; }
.legal ul { margin: 0 0 16px 20px; }
.legal li { font-size: 15px; font-weight: 300; color: var(--neutral-l); line-height: 1.75; margin-bottom: 6px; }
.legal a { color: var(--mist); text-decoration: none; border-bottom: 0.5px solid rgba(93,202,165,0.4); }
.legal a:hover { color: var(--prime); }
.legal .legal-meta { font-size: 13px; color: var(--neutral); margin-bottom: 24px; }
.legal .legal-note {
  font-size: 13px; color: var(--neutral-l); font-weight: 300;
  background: var(--surface);
  border: 0.5px solid rgba(29,158,117,0.18);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 40px;
  line-height: 1.7;
}

/* ── FOOTER ── */
footer {
  background: var(--surface);
  border-top: 0.5px solid rgba(29,158,117,0.12);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-name { font-size: 13px; font-weight: 500; color: var(--white); margin-bottom: 4px; }
.footer-meta { font-size: 11px; color: var(--neutral); }
.footer-right { font-size: 11px; color: var(--neutral); text-align: right; }
.footer-right a { color: var(--mist); text-decoration: none; }
.footer-right a:hover { color: var(--prime); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-tag    { animation: fadeUp 0.6s ease both; }
.hero h1     { animation: fadeUp 0.6s 0.1s ease both; }
.hero-sub    { animation: fadeUp 0.6s 0.2s ease both; }
.hero-actions{ animation: fadeUp 0.6s 0.3s ease both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  section, .hero { padding-left: 24px; padding-right: 24px; }
  footer { padding: 36px 24px; }

  /* Collapse nav into a dropdown */
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(13,15,28,0.97);
    backdrop-filter: blur(12px);
    border-bottom: 0.5px solid rgba(29,158,117,0.15);
    padding: 8px 24px 16px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; font-size: 15px; width: 100%; }
  .nav-cta { display: none; }

  .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .app-card { grid-template-columns: 1fr; }
  .app-card-visual { min-height: 280px; order: -1; }
  .values-grid { grid-template-columns: 1fr; }
  .value-card, .value-card:first-child, .value-card:last-child { border-radius: 10px; }
  .feature-grid { grid-template-columns: 1fr; }
  .upnext { flex-direction: column; align-items: flex-start; }
  .hero-scroll { left: 24px; }
}

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr 1fr; }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-right { text-align: left; }
  .stat-num { font-size: 36px; }
}
