/* Palette taken from the Casa logo: pure black + neon green #00FC84 */
:root {
  --bg: #000000;
  --bg-alt: #070a08;
  --surface: #0d110f;
  --surface-2: #121815;
  --text: #f3f7f5;
  --muted: #9aa6a0;
  --border: #1d2622;
  --brand: #00fc84;
  --brand-soft: rgba(0, 252, 132, .12);
  --brand-ink: #000000;
  --star: #00fc84;
  --radius: 18px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--brand); color: var(--brand-ink); }
h1, h2, h3 { font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif; line-height: 1.15; margin: 0; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--brand); color: var(--brand-ink);
  font-weight: 700; text-decoration: none;
  box-shadow: 0 0 0 0 rgba(0, 252, 132, 0);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 30px rgba(0, 252, 132, .3); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); box-shadow: none; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, .75);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Plus Jakarta Sans", sans-serif; font-weight: 800; font-size: 19px; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--brand); }
@media (max-width: 720px) { .nav-links a:not(.btn) { display: none; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 80px; }
.hero-glow {
  position: absolute; inset: -45% -10% auto; height: 680px; pointer-events: none;
  background: radial-gradient(45% 55% at 50% 45%, rgba(0, 252, 132, .16), transparent 70%);
}
.hero-glow::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(50% 60% at 50% 55%, #000, transparent);
  -webkit-mask-image: radial-gradient(50% 60% at 50% 55%, #000, transparent);
}
.hero-inner { position: relative; text-align: center; }
.hero-logo { width: 88px; height: 88px; border-radius: 22px; margin: 0 auto 28px; border: 1px solid var(--border); box-shadow: 0 0 60px rgba(0, 252, 132, .25); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 16px;
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand);
}
.hero .eyebrow { padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--muted); letter-spacing: .04em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(0, 252, 132, .2); }
.hero h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 800; letter-spacing: -.025em; max-width: 920px; margin: 0 auto; }
.grad { color: var(--brand); }
.lede { max-width: 640px; margin: 22px auto 0; font-size: 19px; color: var(--muted); }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 36px; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 64px auto 0; max-width: 820px;
  background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.stats div { background: var(--surface); padding: 22px 12px; }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd { margin: 4px 0 0; font-family: "Plus Jakarta Sans", sans-serif; font-size: 30px; font-weight: 800; }
.star { color: var(--star); font-size: .7em; margin-left: 4px; vertical-align: .15em; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, 1fr); } }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -.02em; }
.section-head p:not(.eyebrow) { color: var(--muted); font-size: 17px; margin: 14px 0 0; }

/* Apps */
.apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.app {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, border-color .2s ease;
}
.app:hover { transform: translateY(-3px); border-color: rgba(0, 252, 132, .5); }
.app-featured { background: linear-gradient(180deg, var(--surface-2), var(--surface) 60%); }
.app-top { display: flex; gap: 16px; align-items: center; }
.app-icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 60px; height: 60px; border-radius: 16px;
  background: #000; border: 1px solid var(--border); color: var(--brand);
}
.app-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.app h3 { font-size: 20px; font-weight: 700; }
.meta { margin: 6px 0 0; font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.rating { color: var(--text); font-weight: 600; }
.rating::first-letter { color: var(--star); }
.badge, .new { font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; }
.badge { background: var(--brand-soft); color: var(--brand); }
.new { background: var(--brand); color: var(--brand-ink); }
.desc { color: var(--muted); margin: 18px 0 0; }
.features { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; font-size: 15px; }
.features li { position: relative; padding-left: 26px; }
.features li::before {
  content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%;
  background: var(--brand-soft)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4.5 8.2 2.2 2.2 4.8-4.8' fill='none' stroke='%2300fc84' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}
.app-link { margin-top: auto; padding-top: 22px; font-weight: 600; color: var(--brand); text-decoration: none; }
.app-link span { display: inline-block; transition: transform .15s ease; }
.app-link:hover span { transform: translateX(4px); }
@media (max-width: 820px) { .apps { grid-template-columns: 1fr; } .app { padding: 22px; } }

/* Why */
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.why-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.why-icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px;
  color: var(--brand); background: var(--brand-soft);
}
.why-icon svg { width: 22px; height: 22px; }
.why-item h3 { font-size: 17px; font-weight: 700; }
.why-item p { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
@media (max-width: 960px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .why { grid-template-columns: 1fr; } }

/* Contact — inverted: green panel, black type */
.contact {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 28px; color: #000;
  background: var(--brand);
}
.contact .eyebrow { color: rgba(0, 0, 0, .65); }
.contact h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; letter-spacing: -.02em; }
.contact-copy > p:not(.eyebrow) { color: rgba(0, 0, 0, .72); font-size: 17px; margin: 14px 0 28px; }
.contact .btn { background: #000; color: var(--brand); }
.contact .btn:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.contact-cards { display: grid; gap: 16px; }
.contact-card { padding: 22px 24px; border-radius: var(--radius); background: #000; color: var(--text); }
.contact-card h3 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; font-family: Inter, sans-serif; }
.contact-card a { font-size: 18px; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--brand); }
.contact-card address { font-style: normal; font-size: 17px; line-height: 1.6; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; } }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; }
.footer p { margin: 0; }
.footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--brand); }

a:focus-visible, .btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

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