/* ==========================================================================
   Sunrise Technologies – static site styles
   Change the brand red in ONE place: --accent (and --accent-hover / --accent-text)
   ========================================================================== */

:root {
  --bg: #0b0c0f;
  --bg-2: #101217;
  --bg-3: #171a21;
  --text: #ffffff;
  --muted: #b4b8c2;
  --line: #262a33;
  --accent: #e30613;        /* brand red – match to the logo if needed */
  --accent-hover: #ff2a38;
  --accent-text: #ff4d58;   /* lighter red for small text on dark backgrounds */
  --radius: 14px;
  --max: 1160px;
  --header-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-text); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent-hover); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 1000;
  background: var(--accent); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(11, 12, 15, .88);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { height: 40px; width: auto; }
.brand-text { font-weight: 800; letter-spacing: .06em; font-size: 1.05rem; text-transform: uppercase; }
.brand-text span { color: var(--accent-text); }
.brand:hover { color: var(--text); }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size: .95rem; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav a:hover, .nav a.active { color: #fff; background: var(--bg-3); }
.nav a.active { box-shadow: inset 0 -2px 0 var(--accent); border-radius: 999px; }
.nav .nav-cta { background: var(--accent); color: #fff; margin-left: 8px; font-weight: 600; }
.nav .nav-cta:hover { background: var(--accent-hover); color: #fff; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); color: #fff;
  width: 44px; height: 44px; border-radius: 10px; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: #fff; margin: 0 auto; position: relative; transition: transform .2s;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
  font-family: inherit;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: #3a3f4b; color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(72px, 12vw, 150px) 0 clamp(64px, 9vw, 120px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 55% at 50% 118%, rgba(227, 6, 19, .45) 0%, rgba(227, 6, 19, .12) 45%, transparent 70%),
    linear-gradient(var(--bg), var(--bg));
}
.hero::before { /* subtle grid */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  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: 56px 56px;
  mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 40%, #000 30%, transparent 100%);
}
.hero .container { position: relative; }
.eyebrow {
  display: inline-block; color: var(--accent-text); font-size: .82rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 62ch; }
.hero .lead { margin: 22px 0 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.pillars { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding: 0; list-style: none; }
.pillars a {
  display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px;
  color: var(--muted); font-size: .92rem; background: rgba(23, 26, 33, .6);
}
.pillars a:hover { border-color: var(--accent); color: #fff; }

/* ---------- Sections ---------- */
section { scroll-margin-top: var(--header-h); }
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2::after {
  content: ""; display: block; width: 56px; height: 4px; background: var(--accent); border-radius: 2px; margin-top: 16px;
}
.section-head p { color: var(--muted); font-size: 1.08rem; }

.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(227, 6, 19, .6); transform: translateY(-3px); }
.card h3 { margin-bottom: .55em; }
.card p { color: var(--muted); margin-bottom: 0; font-size: .98rem; }
.num { display: block; color: var(--accent-text); font-weight: 800; font-size: .9rem; letter-spacing: .12em; margin-bottom: 14px; }

.check-list { list-style: none; padding: 0; margin: 18px 0 0; }
.check-list li { position: relative; padding-left: 24px; margin-bottom: 8px; color: var(--muted); font-size: .96rem; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 2px; background: var(--accent);
}

/* Featured block (AI / non-human identities) */
.feature {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: center;
  margin-top: 20px; padding: 32px; border: 1px solid rgba(227,6,19,.55); border-radius: var(--radius);
  background: radial-gradient(90% 140% at 0% 0%, rgba(227,6,19,.22), transparent 60%), var(--bg-3);
}
.feature h3 { font-size: 1.45rem; }
.feature p { color: var(--muted); margin: 0; }
.feature .check-list { margin: 0; }
.badge {
  display: inline-block; margin-bottom: 12px; padding: 4px 12px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}

/* About */
.about-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: start; }
.about-grid .lead { margin-bottom: 1.2em; }
.values { display: grid; gap: 14px; }
.value { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }
.value h3 { margin: 0 0 4px; font-size: 1.05rem; }
.value p { margin: 0; color: var(--muted); font-size: .95rem; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; padding: 0; list-style: none; }
.steps li { counter-increment: step; padding-top: 18px; border-top: 2px solid var(--line); position: relative; }
.steps li::before {
  counter-increment: none; content: "0" counter(step); position: absolute; top: -13px; left: 0;
  background: var(--bg); padding-right: 12px; color: var(--accent-text); font-weight: 800; font-size: .9rem; letter-spacing: .1em;
}
.steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.contact-list small { display: block; color: var(--accent-text); letter-spacing: .12em; text-transform: uppercase; font-weight: 700; font-size: .75rem; margin-bottom: 2px; }
.contact-list a:hover { color: var(--accent-text); }
.contact-cta { display: flex; flex-direction: column; justify-content: center; gap: 18px; background:
  radial-gradient(120% 120% at 100% 100%, rgba(227,6,19,.28), transparent 60%), var(--bg-3); }
.contact-cta p { color: var(--muted); }
.contact-cta .btn { align-self: flex-start; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0; color: var(--muted); font-size: .92rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a, .footer-links button { color: var(--muted); background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-links a:hover, .footer-links button:hover { color: var(--accent-text); }

/* ---------- Legal / text pages ---------- */
.legal { padding: clamp(48px, 7vw, 88px) 0; }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; }
.legal p, .legal li { color: #d9dce3; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.legal .meta { color: var(--muted); font-size: .95rem; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--bg-3); }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 500;
  max-width: 560px; margin-left: auto;
  background: var(--bg-3); border: 1px solid #343946; border-radius: var(--radius);
  padding: 22px; box-shadow: 0 20px 60px rgba(0,0,0,.6);
  border-top: 3px solid var(--accent);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h2 { font-size: 1.05rem; margin: 0 0 8px; }
.cookie-banner p { font-size: .92rem; color: var(--muted); margin: 0 0 16px; }
.cookie-banner a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 11px 20px; font-size: .92rem; flex: 1 1 140px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .feature { grid-template-columns: 1fr; padding: 26px; }
}

@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 12px 24px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 12px; border-radius: 8px; }
  .nav a.active { box-shadow: none; color: var(--accent-text); }
  .nav .nav-cta { margin: 8px 0 0; text-align: center; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding: 0 20px; }
  .grid-2, .grid-3, .contact-grid, .steps { grid-template-columns: 1fr; }
  .cookie-banner { left: 10px; right: 10px; bottom: 10px; }
}

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