/* ============================================================
   Sunairio — HORIZON (variant-1)
   Editorial · warm · premium climate-tech
   ============================================================ */

:root {
  --white: #ffffff;
  --cream: #faf7f2;
  --cream-deep: #f3ece1;

  --amber: #f5a623;
  --orange: #ff7a3d;
  --gold: #e08b1e;

  --indigo: #1d1b3a;
  --indigo-2: #32235f;
  --ink: #1d1b3a;
  --muted: #5f5b74;
  --line: rgba(29, 27, 58, 0.10);

  --sunset: linear-gradient(90deg, #f5a623 0%, #ff7a3d 45%, #ff5e8a 70%, #6f5bd0 100%);
  --sunset-soft: linear-gradient(120deg, #f5a623, #ff7a3d 50%, #ff5e8a);

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 18px rgba(29, 27, 58, 0.08);
  --shadow-md: 0 18px 50px rgba(29, 27, 58, 0.14);
  --shadow-lg: 0 30px 80px rgba(29, 27, 58, 0.22);

  --maxw: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

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

a { color: inherit; text-decoration: none; }

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

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -0.02em; color: var(--indigo); }

.section { padding: clamp(64px, 9vw, 130px) 0; }

.kicker {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}
.kicker.light { color: var(--amber); }

.section-head { max-width: 760px; margin-bottom: 60px; }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); }
.lede { margin-top: 22px; font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--muted); }
.lede strong { color: var(--orange); font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: 0.96rem;
  padding: 13px 24px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap;
}
.btn-lg { padding: 16px 32px; font-size: 1.02rem; }
.btn-primary {
  color: #fff; background: var(--indigo);
  box-shadow: 0 8px 24px rgba(29, 27, 58, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(29, 27, 58, 0.34); background: var(--indigo-2); }
.btn-ghost { color: #fff; border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.06); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand-logo { height: 26px; width: auto; transition: filter .35s; }
/* logo is a light wordmark — invert/keep bright over the dark hero */
.site-header:not(.scrolled) .brand-logo { filter: brightness(0) invert(1); }

.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  font-size: 0.95rem; font-weight: 500; color: #fff; position: relative; opacity: .92;
  transition: opacity .2s, color .35s;
}
.nav a::after { content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0; background: var(--sunset); transition: width .3s var(--ease); }
.nav a:hover { opacity: 1; }
.nav a:hover::after { width: 100%; }
.site-header.scrolled .nav a { color: var(--ink); }

.nav-cta { margin-left: 4px; }
.site-header:not(.scrolled) .nav-cta { background: #fff; color: var(--indigo); box-shadow: 0 8px 24px rgba(0,0,0,0.25); }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.site-header.scrolled .nav-toggle span { background: var(--ink); }

.mobile-menu { display: none; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; padding: 120px 0 80px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; transform: scale(1.06); }
.hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(29,27,58,0.55) 0%, rgba(29,27,58,0.12) 30%, rgba(29,27,58,0.30) 70%, rgba(29,27,58,0.78) 100%),
    linear-gradient(75deg, rgba(29,27,58,0.62) 0%, rgba(29,27,58,0.12) 55%, transparent 100%);
}
.hero-content { position: relative; max-width: 880px; }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.08); backdrop-filter: blur(6px); margin-bottom: 26px;
}
.hero-title { font-size: clamp(2.6rem, 7vw, 5.4rem); font-weight: 500; letter-spacing: -0.03em; text-shadow: 0 4px 40px rgba(0,0,0,0.35); }
.hero-sub { margin-top: 26px; max-width: 620px; font-size: clamp(1.08rem, 1.8vw, 1.32rem); color: rgba(255,255,255,0.92); }
.hero-actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }

.hero-stats { display: flex; gap: 40px; margin-top: 64px; flex-wrap: wrap; }
.hstat { max-width: 220px; }
.hstat strong { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 600; line-height: 1; background: var(--sunset-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hstat span { display: block; margin-top: 8px; font-size: 0.92rem; color: rgba(255,255,255,0.82); }

.hero-scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.75); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.hero-scroll span { width: 1px; height: 40px; background: linear-gradient(rgba(255,255,255,0.8), transparent); animation: scrollpulse 2s var(--ease) infinite; }
@keyframes scrollpulse { 0%,100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ============================================================
   Trust band
   ============================================================ */
.trustband { background: var(--cream); border-bottom: 1px solid var(--line); }
.trustband-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 26px; padding: 30px 24px; }
.trust-label { font-size: 0.85rem; letter-spacing: 0.04em; color: var(--muted); margin-right: 8px; }
.trust-logos { list-style: none; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trust-logos li { font-family: var(--serif); font-size: 1.1rem; font-weight: 500; color: var(--indigo); }
.trust-logos .dot { color: var(--amber); }

/* ============================================================
   Problem / comparison
   ============================================================ */
.problem { background: var(--white); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.compare-card {
  background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.compare-card.highlight { background: linear-gradient(180deg, #fff 0%, #fff7ee 100%); border-color: rgba(245,166,35,0.4); box-shadow: var(--shadow-md); }
.compare-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.compare-frame { border-radius: var(--radius-sm); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.compare-frame img { width: 100%; }
.compare-card figcaption { padding: 22px 6px 6px; }
.compare-card h3 { font-size: 1.4rem; margin: 12px 0 8px; }
.compare-card p { color: var(--muted); font-size: 0.98rem; }
.tag { display: inline-block; font-family: var(--sans); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 12px; border-radius: 999px; color: #fff; background: var(--orange); }
.tag-muted { background: transparent; color: var(--muted); border: 1px solid var(--line); }

/* ============================================================
   Solution
   ============================================================ */
.solution { background: var(--cream); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 80px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .35s var(--ease); }
.step:hover { transform: translateY(-5px); }
.step-no { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; background: var(--sunset-soft); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.18rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.94rem; }

.solution-feature { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 50px; align-items: center; }
.solution-feature-text h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.solution-feature-text p { color: var(--muted); margin: 18px 0 24px; font-size: 1.05rem; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.feature-list li { position: relative; padding-left: 30px; font-weight: 500; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--sunset-soft);
}
.solution-feature-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.solution-feature-media img { width: 100%; aspect-ratio: 4/3.4; object-fit: cover; }

/* ============================================================
   Products
   ============================================================ */
.products { background: var(--white); }
.product { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; margin-bottom: 96px; }
.product:last-of-type { margin-bottom: 0; }
.product.reverse { grid-template-columns: 1.1fr 0.9fr; }
.product.reverse .product-info { order: 2; }
.product.reverse .product-shots { order: 1; }
.product-name {
  display: inline-block; font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--orange); padding: 6px 14px; border: 1px solid rgba(255,122,61,0.35); border-radius: 999px; margin-bottom: 18px;
}
.product-info h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.product-info > p { color: var(--muted); margin: 18px 0 24px; font-size: 1.05rem; }

.product-shots { position: relative; }
.browser-frame { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.browser-bar { display: flex; gap: 7px; padding: 12px 16px; background: var(--cream); border-bottom: 1px solid var(--line); }
.browser-bar span { width: 11px; height: 11px; border-radius: 50%; background: #d9d2c6; }
.browser-bar span:first-child { background: #ff7a3d; }
.browser-bar span:nth-child(2) { background: #f5a623; }
.browser-bar span:nth-child(3) { background: #7bc47f; }
.browser-frame img { width: 100%; }
.product-shots:not(.single) .browser-frame.offset { margin-top: -54px; margin-left: 48px; box-shadow: var(--shadow-lg); position: relative; }
@media (max-width: 700px) { .product-shots:not(.single) .browser-frame.offset { margin-left: 0; } }

/* ============================================================
   Industries
   ============================================================ */
.industries { background: var(--cream); }
.usecases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 48px; }
.usecase { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); border-top: 3px solid transparent; transition: border-color .3s, transform .3s var(--ease); }
.usecase:hover { transform: translateY(-5px); border-top-color: var(--orange); }
.usecase h3 { font-size: 1.16rem; margin-bottom: 10px; }
.usecase p { color: var(--muted); font-size: 0.94rem; }
.cat-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.cat-tag { font-size: 0.88rem; font-weight: 600; padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--indigo); }

/* ============================================================
   Investors
   ============================================================ */
.investors { background: var(--indigo); color: #fff; position: relative; overflow: hidden; }
.investors::before {
  content: ""; position: absolute; inset: 0; opacity: 0.5;
  background: radial-gradient(1200px 500px at 80% -10%, rgba(255,122,61,0.35), transparent 60%),
              radial-gradient(900px 400px at 0% 110%, rgba(111,91,208,0.45), transparent 60%);
}
.investors .container { position: relative; }
.investors h2 { color: #fff; }
.techstars-anchor {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  padding: 56px 24px; margin: 0 auto 48px; max-width: 720px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.14); border-radius: var(--radius);
  backdrop-filter: blur(6px);
}
.techstars-logo { height: 46px; width: auto; }
.techstars-badge { font-family: var(--serif); font-size: 1.5rem; font-weight: 600; background: var(--sunset-soft); -webkit-background-clip: text; background-clip: text; color: transparent; }
.investor-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px 40px; max-width: 860px; margin: 0 auto; }
.investor-row span { font-size: 1.02rem; font-weight: 500; color: rgba(255,255,255,0.78); position: relative; }
.investor-row span:not(:last-child)::after { content: "·"; position: absolute; right: -22px; color: var(--amber); }
.raised { text-align: center; margin-top: 36px; color: rgba(255,255,255,0.65); font-size: 0.95rem; letter-spacing: 0.02em; }

/* ============================================================
   CTA
   ============================================================ */
.cta { background: var(--sunset); padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.cta::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29,27,58,0.05), rgba(29,27,58,0.18)); pointer-events: none; }
.cta-inner { position: relative; text-align: center; max-width: 720px; }
.cta-inner h2 { color: #fff; font-size: clamp(2.1rem, 5vw, 3.4rem); text-shadow: 0 4px 30px rgba(29,27,58,0.3); }
.cta-inner p { color: rgba(255,255,255,0.95); font-size: 1.18rem; margin: 22px auto 34px; max-width: 540px; }
.cta .btn-primary { background: #fff; color: var(--indigo); box-shadow: 0 14px 40px rgba(29,27,58,0.35); }
.cta .btn-primary:hover { background: var(--cream); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--indigo); color: rgba(255,255,255,0.78); padding: 72px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 44px; }
.footer-logo { height: 24px; filter: brightness(0) invert(1); margin-bottom: 18px; }
.footer-brand p { max-width: 320px; font-size: 0.95rem; margin-bottom: 20px; }
.footer-linkedin { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); color: #fff; transition: background .25s, transform .25s; }
.footer-linkedin:hover { background: var(--orange); transform: translateY(-2px); border-color: var(--orange); }
.footer-col h4 { color: #fff; font-family: var(--sans); font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 18px; font-weight: 700; }
.footer-col a { display: block; font-size: 0.95rem; margin-bottom: 11px; color: rgba(255,255,255,0.74); transition: color .2s; }
.footer-col a:hover { color: var(--amber); }
.newsletter p { font-size: 0.92rem; margin-bottom: 16px; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input { flex: 1 1 160px; padding: 12px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); color: #fff; font-family: var(--sans); font-size: 0.92rem; }
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form input:focus { outline: none; border-color: var(--amber); }
.form-msg { font-size: 0.86rem; margin-top: 10px; min-height: 1em; color: var(--amber); }

.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 56px; padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.85rem; color: rgba(255,255,255,0.55); }
.footer-tag { font-family: var(--serif); font-style: italic; }

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

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-scroll span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu { display: flex; flex-direction: column; gap: 4px; padding: 12px 24px 22px; background: rgba(255,255,255,0.97); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .mobile-menu a { padding: 12px 4px; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
  .mobile-menu a:last-child { border: 0; margin-top: 10px; }
  .mobile-menu .btn-primary { color: #fff; }

  .steps { grid-template-columns: repeat(2, 1fr); }
  .usecases { grid-template-columns: repeat(2, 1fr); }
  .solution-feature { grid-template-columns: 1fr; gap: 36px; }
  .product, .product.reverse { grid-template-columns: 1fr; gap: 36px; }
  .product.reverse .product-info, .product.reverse .product-shots { order: initial; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .compare { grid-template-columns: 1fr; }
  .steps, .usecases { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 28px; }
  .hero { min-height: 92vh; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
