/* ===========================================================
   Okatta — landing site styles
   Premium graphite base + warm brick (coral→amber) accents.
   No purple. Glassmorphism, gradients, soft depth.
   =========================================================== */

:root {
  --bg:        #0a0c11;
  --bg-2:      #11141c;
  --surface:   rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.07);
  --border:    rgba(255, 255, 255, 0.10);
  --text:      #f4f6fb;
  --muted:     #9aa4b6;
  --muted-2:   #6b7488;

  --brand-1:   #ff6a3d;   /* warm coral  */
  --brand-2:   #ffb13d;   /* amber       */
  --brand-grad: linear-gradient(135deg, #ff6a3d 0%, #ffb13d 100%);
  --graphite:  linear-gradient(160deg, #2a2f3a 0%, #14171f 100%);

  --green:     #4fbf6a;
  --blue:      #3aa0e6;

  --radius:    22px;
  --radius-sm: 14px;
  --maxw:      1180px;
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  /* Premium system stack — no external font service. Rounded SF on Apple
     devices (matches the in-app look); graceful fallbacks elsewhere. */
  font-family: "SF Pro Rounded", ui-rounded, -apple-system, BlinkMacSystemFont,
               "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Ambient background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(620px 620px at 12% -5%, rgba(255, 106, 61, 0.16), transparent 60%),
    radial-gradient(680px 680px at 95% 8%, rgba(58, 160, 230, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- Typography ---------- */
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-2);
}
.gradient-text {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 999px; border: none; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-primary {
  background: var(--brand-grad); color: #1a0e06;
  box-shadow: 0 10px 30px rgba(255, 106, 61, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(255, 106, 61, 0.45); }
.btn-ghost {
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border); backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-3px); }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(10, 12, 17, 0.6);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--border); background: rgba(10, 12, 17, 0.82); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; }
.brand .logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--graphite);
  display: grid; place-items: center;
  box-shadow: 0 6px 16px rgba(0,0,0,0.4);
}
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 15px; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 4px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 80px 0 90px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 64px); margin: 18px 0 18px; }
.hero p.lead { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 30px 0 26px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stats .stat .num { font-size: 26px; font-weight: 800; }
.hero-stats .stat .lbl { font-size: 13px; color: var(--muted); }

.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 700; color: var(--text);
}
.badge-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(79,191,106,0.25); }

/* ---------- 3D containers ---------- */
.hero3d {
  width: 100%;
  height: 560px;
  cursor: grab;
}
.hero3d:active { cursor: grabbing; }
.hero3d canvas { display: block; }
.shot3d {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---------- Phone mockup (fallback / unused) ---------- */
.hero-visual { position: relative; display: grid; place-items: center; min-height: 460px; }
.phone {
  position: relative; width: 270px; height: 552px; border-radius: 44px;
  background: linear-gradient(160deg, #20242e, #0d1015);
  border: 2px solid rgba(255,255,255,0.08);
  box-shadow: 0 40px 90px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.1);
  padding: 12px;
  animation: floatY 6s ease-in-out infinite;
}
.phone .notch {
  position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #05070b; border-radius: 0 0 16px 16px; z-index: 3;
}
.phone .screen {
  width: 100%; height: 100%; border-radius: 34px; overflow: hidden; position: relative;
  background:
    radial-gradient(120% 80% at 50% 0%, #acd3ff 0%, #cfe6ff 45%, #e9f3ff 100%);
}
/* mini build scene inside the phone */
.scene { position: absolute; inset: 0; }
.baseplate {
  position: absolute; left: 50%; bottom: 70px; transform: translateX(-50%) rotateX(58deg);
  width: 190px; height: 190px; border-radius: 12px;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.06) 0 18px, transparent 18px 19px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.06) 0 18px, transparent 18px 19px),
    linear-gradient(#5fc977, #49b265);
  box-shadow: 0 30px 40px rgba(0,0,0,0.25);
}
.mini-house {
  position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%);
  width: 120px; height: 130px;
}
.mini-house .wall {
  position: absolute; bottom: 0; left: 10px; width: 100px; height: 80px; border-radius: 8px;
  background: linear-gradient(160deg, #ff7a5c, #e8492f);
  box-shadow: inset 0 -6px 12px rgba(0,0,0,0.18), 0 8px 18px rgba(0,0,0,0.2);
}
.mini-house .win {
  position: absolute; bottom: 26px; left: 30px; width: 26px; height: 26px; border-radius: 5px;
  background: linear-gradient(160deg, #bfe0f5, #7fb4d8); border: 3px solid #fff;
}
.mini-house .door {
  position: absolute; bottom: 0; left: 66px; width: 22px; height: 40px; border-radius: 5px 5px 0 0;
  background: linear-gradient(160deg, #ffce5e, #f0a82a);
}
.mini-house .roof {
  position: absolute; bottom: 78px; left: 0; width: 0; height: 0;
  border-left: 60px solid transparent; border-right: 60px solid transparent;
  border-bottom: 44px solid #c9402a;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.2));
}

/* ---------- Decorative floating bricks ---------- */
.brick {
  position: relative; border-radius: 9px;
  box-shadow: inset 0 -7px 12px rgba(0,0,0,0.22), 0 14px 26px rgba(0,0,0,0.30);
}
.brick .studs { position: absolute; top: -6px; left: 0; right: 0; display: flex; justify-content: space-evenly; }
.brick .stud { width: 16px; height: 12px; border-radius: 50%; background: inherit; box-shadow: inset 0 -3px 5px rgba(0,0,0,0.25); }
.brick.red    { background: linear-gradient(160deg, #ff7a5c, #e8492f); }
.brick.amber  { background: linear-gradient(160deg, #ffce5e, #f0a82a); }
.brick.green  { background: linear-gradient(160deg, #66d07f, #3fa85c); }
.brick.blue   { background: linear-gradient(160deg, #63b6ef, #2f8fd6); }

.float-bricks { position: absolute; inset: -20px; pointer-events: none; }
.float-bricks .brick { position: absolute; }
.fb1 { width: 86px; height: 40px; top: 6%;  left: -2%;  animation: floatA 7s ease-in-out infinite; }
.fb2 { width: 64px; height: 32px; top: 64%; left: -6%;  animation: floatB 8s ease-in-out infinite; }
.fb3 { width: 74px; height: 36px; top: 8%;  right: -4%; animation: floatB 6.5s ease-in-out infinite; }
.fb4 { width: 58px; height: 30px; top: 72%; right: -2%; animation: floatA 9s ease-in-out infinite; }

@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes floatA { 0%,100% { transform: translateY(0) rotate(-8deg); } 50% { transform: translateY(-22px) rotate(-3deg); } }
@keyframes floatB { 0%,100% { transform: translateY(0) rotate(7deg); } 50% { transform: translateY(20px) rotate(2deg); } }

/* ---------- Sections ---------- */
section { padding: 86px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 54px; }
.section-head h2 { font-size: clamp(30px, 4.5vw, 44px); margin: 14px 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Features grid ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.f-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; backdrop-filter: blur(10px);
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.f-card:hover { transform: translateY(-6px); border-color: rgba(255,177,61,0.4); background: var(--surface-2); }
.f-icon {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 16px; background: var(--graphite);
  box-shadow: 0 8px 18px rgba(0,0,0,0.4);
}
.f-card h3 { font-size: 19px; margin-bottom: 8px; }
.f-card p { color: var(--muted); font-size: 15px; }

/* ---------- Showcase / gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot {
  border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--border); aspect-ratio: 4/5;
  background: radial-gradient(120% 90% at 50% 0%, #b9d9ff, #dcebff 70%, #eef5ff);
  transition: transform .35s var(--ease);
}
.shot:hover { transform: translateY(-6px) scale(1.01); }
.shot .label {
  position: absolute; left: 14px; bottom: 14px; z-index: 2;
  background: rgba(0,0,0,0.45); color: #fff; backdrop-filter: blur(6px);
  padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.shot .scene { transform: scale(0.92); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { text-align: center; }
.step .n {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #1a0e06;
  background: var(--brand-grad); box-shadow: 0 10px 24px rgba(255,106,61,0.35);
}
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Color strip ---------- */
.colorstrip { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.swatch { width: 46px; height: 46px; border-radius: 14px; box-shadow: inset 0 -5px 9px rgba(0,0,0,0.2); transition: transform .25s var(--ease); }
.swatch:hover { transform: translateY(-6px) scale(1.08); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.q {
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); margin-bottom: 14px; overflow: hidden;
}
.q summary {
  list-style: none; cursor: pointer; padding: 20px 22px;
  font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; align-items: center;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after { content: "+"; font-size: 24px; color: var(--brand-2); transition: transform .3s; }
.q[open] summary::after { transform: rotate(45deg); }
.q .a { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- CTA band ---------- */
.cta-band {
  text-align: center; border-radius: 32px; padding: 64px 28px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(255,106,61,0.22), transparent 60%),
    var(--graphite);
  border: 1px solid var(--border);
}
.cta-band h2 { font-size: clamp(28px, 4.5vw, 42px); margin-bottom: 14px; }
.cta-band p { color: var(--muted); margin-bottom: 28px; }
.signup { display: flex; gap: 10px; max-width: 440px; margin: 0 auto; flex-wrap: wrap; justify-content: center; }
.signup input {
  flex: 1; min-width: 220px; padding: 14px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(0,0,0,0.3); color: var(--text); font-size: 15px;
}
.signup input::placeholder { color: var(--muted-2); }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 60px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-grid h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-2); margin-bottom: 16px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid a { color: var(--muted); font-size: 15px; transition: color .2s; }
.footer-grid a:hover { color: var(--text); }
.footer-about p { color: var(--muted); font-size: 14px; max-width: 320px; margin-top: 14px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--border); color: var(--muted-2); font-size: 13px;
}
.socials { display: flex; gap: 12px; }
.socials a {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted); transition: .2s;
}
.socials a:hover { color: var(--text); background: var(--surface-2); transform: translateY(-3px); }
.disclaimer { color: var(--muted-2); font-size: 12px; margin-top: 8px; max-width: 720px; }

/* ---------- Legal / content pages ---------- */
.page-hero { padding: 70px 0 30px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); margin-bottom: 10px; }
.page-hero p { color: var(--muted); }
.legal { max-width: 820px; margin: 0 auto; padding: 20px 0 90px; }
.legal h2 { font-size: 22px; margin: 34px 0 12px; }
.legal h3 { font-size: 18px; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--muted); font-size: 16px; margin-bottom: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--brand-2); }
.note {
  background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--brand-1);
  border-radius: var(--radius-sm); padding: 16px 18px; color: var(--muted); font-size: 15px; margin: 18px 0;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; max-width: 940px; margin: 0 auto 80px; }
.contact-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px;
}
.contact-card h3 { margin-bottom: 14px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: rgba(0,0,0,0.3); color: var(--text); font-size: 15px; font-family: inherit;
}
.field textarea { min-height: 130px; resize: vertical; }
.contact-info-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-info-item .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 20px;
  background: var(--graphite); flex-shrink: 0;
}
.contact-info-item .t { font-weight: 700; }
.contact-info-item .s { color: var(--muted); font-size: 14px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; min-height: 420px; }
  .features, .gallery, .steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0;
    background: rgba(10,12,17,0.97); padding: 20px 22px; gap: 18px; border-bottom: 1px solid var(--border);
  }
  .features, .gallery, .steps, .footer-grid { grid-template-columns: 1fr; }
  section { padding: 64px 0; }
  .nav-cta .btn-ghost { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===========================================================
   Award-winning additions
   =========================================================== */

/* Preloader */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; background: var(--bg);
  transition: opacity .6s ease, visibility .6s ease;
}
body.loaded .preloader { opacity: 0; visibility: hidden; }
.pl-bricks { display: flex; gap: 8px; margin-bottom: 16px; }
.pl-bricks span { width: 26px; height: 16px; border-radius: 5px; background: var(--brand-grad); animation: plb 1s ease-in-out infinite; }
.pl-bricks span:nth-child(2) { animation-delay: .15s; }
.pl-bricks span:nth-child(3) { animation-delay: .30s; }
@keyframes plb { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-11px); opacity: 1; } }
.pl-label { font-weight: 800; letter-spacing: .02em; color: var(--muted); }

/* Film grain overlay */
.grain {
  position: fixed; inset: 0; z-index: 5; pointer-events: none;
  opacity: .04; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: var(--brand-grad); z-index: 200;
}

/* Custom cursor */
.cursor-dot, .cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 300; pointer-events: none;
  border-radius: 50%; translate: -50% -50%;
}
.cursor-dot { width: 7px; height: 7px; background: var(--brand-2); }
.cursor-ring { width: 34px; height: 34px; border: 1.5px solid rgba(255, 177, 61, .55);
  transition: width .25s var(--ease), height .25s var(--ease), background .25s; }
body.cursor-grow .cursor-ring { width: 56px; height: 56px; background: rgba(255, 177, 61, .10); }
body.has-cursor, body.has-cursor a, body.has-cursor button, body.has-cursor summary { cursor: none; }
body.has-cursor input, body.has-cursor textarea { cursor: text; }

/* Marquee */
.marquee { overflow: hidden; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02); padding: 20px 0; }
.marquee-track { display: flex; width: max-content; animation: marq 24s linear infinite; }
.marquee-track span { font-size: clamp(22px, 4.2vw, 40px); font-weight: 800; letter-spacing: .04em;
  color: transparent; -webkit-text-stroke: 1px var(--muted-2); white-space: nowrap; }
@keyframes marq { to { transform: translateX(-50%); } }

/* Bento features */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.bento .f-card { display: flex; flex-direction: column; }
.bento-lg { grid-column: span 2; }
.bento-wide { grid-column: span 3; }
.bento-lg .f-icon, .bento-wide .f-icon { width: 60px; height: 60px; font-size: 28px; }
.bento-lg h3, .bento-wide h3 { font-size: 24px; }

/* Drag hint on hero 3D */
.drag-hint {
  position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%);
  font-size: 12px; font-weight: 700; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 13px; border-radius: 999px; backdrop-filter: blur(8px);
}

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-lg, .bento-wide { grid-column: span 2; }
  .hero3d { height: 440px; }
}
@media (max-width: 640px) {
  .bento { grid-template-columns: 1fr; }
  .bento-lg, .bento-wide { grid-column: span 1; }
  .hero3d { height: 380px; }
  .cursor-dot, .cursor-ring { display: none; }
}
