/* ============================================================
   Solartec — shared stylesheet
   Light theme built around the blue of the Solartec logo.
   Colours are sampled from img/solartec_logo_crest.png.
   ============================================================ */

:root {
  --brand:       #0a8fd0;   /* logo ring, mid tone */
  --brand-deep:  #0072b8;   /* logo ring, outer tone */
  --brand-light: #2fb3ea;   /* logo ring, inner tone */
  --brand-tint:  #e8f4fb;   /* very light wash for pills and hovers */
  --ink:         #1c2b30;   /* logo wordmark charcoal: headings and body */
  --navy:        #0f2029;   /* footer */
  --bg:          #ffffff;
  --surface:     #f4f8fb;
  --border:      #dbe4ec;
  --muted:       #5a6b76;
  --shadow:      0 10px 30px rgba(15, 32, 41, 0.08);
  --shadow-lg:   0 24px 60px rgba(15, 32, 41, 0.14);
  --radius:      18px;
  --nav-h:       80px;
  --max:         1440px;
  --pad:         48px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 100px; }
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}
/* Fixed nav is 80px + 1px border; keep the page below it */
body { padding-top: calc(var(--nav-h) + 1px); line-height: 1.5; display: flex; flex-direction: column; }
/* Short pages (login, legal): footer stays at the bottom of the window.
   Flex items shrink to their content, so give every section its full width back. */
body > * { width: 100%; }
.site-footer { margin-top: auto; }
img { max-width: 100%; }
/* Form controls do not inherit the page font by default; make every one use Inter */
button, input, select, textarea { font-family: inherit; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Gradient word inside headings */
.hero-headline em, .section-title em, .page-headline em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── BUTTONS ─── */
.btn-primary, .btn-ghost, .btn-white, .btn-outline-white {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 30px; border-radius: 100px;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(10,143,208,0.35); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-white { background: #fff; color: var(--brand-deep); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(0,0,0,0.18); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.55); }
.btn-outline-white:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  max-width: var(--max); height: var(--nav-h); margin: 0 auto; padding: 0 var(--pad);
}
.logo { display: flex; align-items: center; margin-right: auto; }
.logo-word { height: 22px; width: auto; display: block; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  color: var(--ink); opacity: 0.75; text-decoration: none;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover, .nav-links a.active { opacity: 1; color: var(--brand-deep); }

.hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 9px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.hamburger span {
  display: block; height: 2px; width: 100%; background: var(--ink); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s; transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Floats over the page instead of pushing it down, so anchor
   scrolling is not thrown off when the menu closes */
.mobile-menu {
  position: absolute; top: 100%; left: 0; right: 0;
  display: flex; flex-direction: column;
  background: #fff; box-shadow: var(--shadow-lg);
  max-height: 0; overflow: hidden; padding: 0;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.mobile-menu.open { max-height: 480px; padding: 8px 0 20px; border-bottom: 1px solid var(--border); }
.mobile-menu a {
  padding: 16px 24px; color: var(--ink); text-decoration: none; font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.mobile-menu a.active { color: var(--brand-deep); }
.mobile-menu a:last-of-type { border-bottom: none; }
@media (min-width: 981px) { .mobile-menu { display: none; } }

/* ─── HOME HERO ─── */
.hero { max-width: var(--max); margin: 0 auto; padding: 72px var(--pad) 0; }
/* Sized so the whole headline fits on one row from ~900px up; wraps below that */
.hero-headline {
  font-size: clamp(2.4rem, 4.9vw, 4rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 28px;
}
.hero-sub { color: var(--muted); font-size: 1.15rem; line-height: 1.65; max-width: 780px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 56px; }
/* Spread across the full page width: first stat flush left, last flush right */
.hero-stats { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px 24px; margin-bottom: 64px; }
.stat-item { display: flex; flex-direction: column; gap: 4px; }
.hero-stats .stat-item:last-child { text-align: right; }
.stat-num { font-size: 2.6rem; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.stat-num span { color: var(--brand); text-transform: uppercase; font-size: 0.6em; }
.stat-label { font-size: 0.95rem; color: var(--muted); text-transform: lowercase; }

/* ─── MARQUEE ─── */
.marquee-wrapper {
  position: relative; left: 50%; transform: translateX(-50%);
  width: 80vw; margin-bottom: 48px; overflow: hidden; border-radius: 20px;
}
.marquee-wrapper::before, .marquee-wrapper::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 320px; z-index: 2; pointer-events: none;
}
.marquee-wrapper::before { left: 0; background: linear-gradient(to right, var(--bg) 0%, transparent 100%); }
.marquee-wrapper::after { right: 0; background: linear-gradient(to left, var(--bg) 0%, transparent 100%); }
.marquee-section { display: flex; flex-direction: column; gap: 20px; }
.marquee-row { display: flex; gap: 20px; width: max-content; transition: transform 0.1s linear; will-change: transform; }
.marquee-pill {
  position: relative; flex-shrink: 0; height: 240px; width: 280px;
  border-radius: 20px; overflow: hidden; background: var(--surface);
}
.marquee-pill img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* ─── SHARED SECTION ─── */
.section-inner { max-width: var(--max); margin: 0 auto; padding: 100px var(--pad); }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-label {
  display: inline-block; font-size: 0.74rem; font-weight: 700; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brand); margin-bottom: 18px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.08; margin-bottom: 18px;
}
.section-sub { color: var(--muted); font-size: 1.08rem; line-height: 1.65; margin-bottom: 56px; }

/* ─── PRODUCT CARDS (home) ─── */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.portfolio-card {
  display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #fff;
  text-decoration: none; color: inherit;
  transition: transform 0.3s, box-shadow 0.3s;
}
.portfolio-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.pc-image { position: relative; height: 240px; overflow: hidden; }
.pc-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s; }
.portfolio-card:hover .pc-image img { transform: scale(1.05); }
.pc-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.pc-body h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; letter-spacing: -0.01em; }
.pc-body p { color: var(--muted); font-size: 0.95rem; line-height: 1.65; margin-bottom: 20px; flex: 1; }
.pc-link { color: var(--brand-deep); font-weight: 600; font-size: 0.9rem; }

/* ─── BENEFITS (home) ─── */
.usecases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.uc-card {
  padding: 32px 30px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  transition: box-shadow 0.25s, transform 0.25s;
}
.uc-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.uc-icon {
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 20px;
  background: var(--brand-tint); color: var(--brand-deep);
  display: flex; align-items: center; justify-content: center;
}
.uc-icon svg { width: 22px; height: 22px; }
.uc-card h4 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.uc-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.65; }

/* ─── CONTACT (home) ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.contact-points { list-style: none; display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.contact-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; }
.contact-points svg { flex-shrink: 0; width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.contact-details { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.contact-form {
  background: #f4f4f4; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
  font-family: 'Inter', system-ui, sans-serif;
}
.contact-form *, .login-card * { font-family: inherit; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.85rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; font-family: 'Inter', system-ui, sans-serif; font-size: 1rem; color: var(--ink);
  background: #fff; border: 1px solid #d9d9d9; border-radius: 10px; padding: 12px 14px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--brand); box-shadow: 0 0 0 3px rgba(10,143,208,0.15);
}
.field textarea { min-height: 120px; resize: vertical; }
.field ::placeholder { color: #9aa8b1; opacity: 1; }
.form-actions { display: flex; justify-content: flex-end; margin-top: 4px; }
.form-success {
  display: none; margin-top: 16px; padding: 14px 18px; border-radius: 12px;
  background: var(--brand-tint); color: var(--brand-deep); font-weight: 600;
}
.form-success.show { display: block; }
.form-error {
  display: none; margin-top: 16px; padding: 14px 18px; border-radius: 12px;
  background: #fdecec; color: #a3262b; font-weight: 600;
}
.form-error.show { display: block; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form { position: relative; }
.btn-primary[disabled] { opacity: 0.6; cursor: default; transform: none; box-shadow: none; }
/* Send message: white with dark text, light brand blue on hover */
.contact-form .btn-primary { background: #fff; color: var(--ink); border-color: var(--border); }
.contact-form .btn-primary:hover {
  background: var(--brand-light); border-color: var(--brand-light); color: #fff;
  box-shadow: 0 10px 28px rgba(47,179,234,0.35);
}

/* ─── PRODUCT PAGE HERO ─── */
.page-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero-top { max-width: var(--max); margin: 0 auto; padding: 28px var(--pad) 0; }
.page-hero-inner {
  max-width: var(--max); margin: 0 auto; padding: 24px var(--pad) 64px;
  display: flex; align-items: center; gap: 48px;
}
.page-hero-text { flex: 1; min-width: 0; }
.page-hero-image {
  flex: 0 0 420px; height: 400px; border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-lg);
}
.page-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--brand-deep); }
.breadcrumb span { color: var(--brand-deep); font-weight: 600; }
/* Sized so the headline fits on one row beside the photo from ~1100px up */
.page-headline {
  font-size: clamp(2rem, calc(6.6vw - 42px), 3.6rem); font-weight: 800; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 22px;
}
.page-sub { color: var(--muted); font-size: 1.12rem; line-height: 1.65; margin-bottom: 34px; }

/* ─── STATS BAR ─── */
.stats-bar { background: #fff; border-bottom: 1px solid var(--border); }
.stats-bar-inner {
  max-width: var(--max); margin: 0 auto; padding: 0 var(--pad);
  display: flex; justify-content: space-between; gap: 24px;
}
.stat-cell { padding: 36px 0; display: flex; flex-direction: column; gap: 4px; }
.stat-cell:last-child { text-align: right; }

/* ─── STEPS ─── */
.steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.step-card {
  padding: 34px 30px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  transition: box-shadow 0.25s, transform 0.25s;
}
.step-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.step-num { font-size: 3.2rem; font-weight: 800; line-height: 1; letter-spacing: -0.03em; color: rgba(10,143,208,0.22); margin-bottom: 18px; }
.step-card h4 { font-size: 1.08rem; font-weight: 700; margin-bottom: 10px; }
.step-card p { color: var(--muted); font-size: 0.93rem; line-height: 1.65; }

/* ─── FEATURES ─── */
.features-split { display: flex; gap: 72px; align-items: center; }
.features-image { flex: 0 0 440px; height: 500px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.features-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.features-list { flex: 1; }
.feature-item { display: flex; gap: 18px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.feature-item:first-child { padding-top: 0; }
.feature-item:last-child { border-bottom: none; padding-bottom: 0; }
.feature-check {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand-deep);
  display: flex; align-items: center; justify-content: center;
}
.feature-check svg { width: 16px; height: 16px; }
.feature-text h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: 6px; }
.feature-text p { font-size: 0.93rem; color: var(--muted); line-height: 1.6; }

/* ─── SPECS TABLE ─── */
.specs-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.specs-table th {
  background: var(--surface); padding: 16px 24px; text-align: left;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
.specs-table td { padding: 16px 24px; border-bottom: 1px solid var(--border); font-size: 0.95rem; vertical-align: middle; }
.specs-table tr:last-child td { border-bottom: none; }
.specs-table tr:hover td { background: var(--surface); }
.specs-table td:first-child { color: var(--muted); }
.specs-table td:last-child { color: var(--brand-deep); font-weight: 700; }

/* ─── FAQ ─── */
.faq-list { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 1.05rem; font-weight: 600; color: var(--ink);
  text-align: left; transition: color 0.2s;
}
.faq-q:hover { color: var(--brand-deep); }
.faq-chevron { width: 20px; height: 20px; flex-shrink: 0; color: var(--brand); transition: transform 0.3s; }
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a p { padding-bottom: 22px; color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

/* ─── CTA BAND ─── */
.cta-band {
  background: linear-gradient(120deg, var(--brand-deep) 0%, var(--brand) 55%, var(--brand-light) 100%);
  color: #fff;
}
.cta-band-inner {
  max-width: var(--max); margin: 0 auto; padding: 80px var(--pad);
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
}
.cta-band h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #fff; }
.cta-band p { color: rgba(255,255,255,0.85); font-size: 1.02rem; line-height: 1.6; max-width: 460px; margin-top: 12px; }
.cta-actions { display: flex; gap: 14px; flex-shrink: 0; }

/* ─── FOOTER ─── */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.72); }
.footer-inner { max-width: var(--max); margin: 0 auto; padding: 72px var(--pad) 36px; }
.footer-top { display: grid; grid-template-columns: 32fr 16fr 16fr 20fr 16fr;  /* logo 32%, products 16%, support 16%, contact 20%, legal 16% */ gap: 48px; margin-bottom: 56px; }
.footer-logo { width: 150px; height: auto; filter: brightness(0) invert(1); display: block; margin-bottom: 16px; }
.footer-tagline { font-size: 0.9rem; line-height: 1.6; max-width: 260px; }
.footer-brand .footer-newsletter { margin-top: 24px; max-width: 300px; }
.footer-contact span { color: rgba(255,255,255,0.72); font-size: 0.92rem; }
.footer-links-group { display: flex; flex-direction: column; gap: 10px; }
.footer-links-group h5, .footer-newsletter h5 {
  color: #fff; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 8px;
}
.footer-links-group a { color: rgba(255,255,255,0.72); text-decoration: none; font-size: 0.92rem; transition: color 0.2s; }
.footer-links-group a:hover { color: #fff; }
.footer-newsletter p { font-size: 0.9rem; line-height: 1.6; margin-bottom: 14px; }
/* One rounded field with the send icon inside it, at the right end */
.newsletter-form {
  position: relative; display: flex; align-items: stretch;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px; overflow: hidden; transition: border-color 0.2s;
}
.newsletter-form:focus-within { border-color: var(--brand-light); }
.newsletter-form input {
  flex: 1; min-width: 0; background: transparent; border: none; padding: 11px 14px; color: #fff;
  font-family: 'Inter', sans-serif; font-size: 0.9rem; outline: none;
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.5); opacity: 1; }
.newsletter-form button {
  flex: 0 0 44px; padding: 0; display: flex; align-items: center; justify-content: center;
  background: transparent; color: rgba(255,255,255,0.72); border: none; cursor: pointer;
  border-left: 1px solid rgba(255,255,255,0.18);
  transition: color 0.2s, background 0.2s;
}
.newsletter-form button:hover { color: #fff; }
.newsletter-form button svg { width: 20px; height: 20px; }
.newsletter-note { font-size: 0.85rem; line-height: 1.5; margin-top: 10px; color: var(--brand-light); min-height: 0; }
.newsletter-note.is-error { color: #ff9b9b; }
.newsletter-form button:hover { background: var(--brand-light); }
.footer-bottom {
  display: flex; align-items: center; justify-content: flex-start; gap: 16px;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.82rem;
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: inherit; text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: #fff; }

/* ─── LEGAL PAGES ─── */
.legal { max-width: 820px; margin: 0 auto; padding: 72px var(--pad) 100px; }
.legal h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.25rem; font-weight: 700; margin: 36px 0 12px; }
.legal p, .legal li { font-size: 1rem; line-height: 1.7; }
.legal p { margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--brand-deep); }

/* ─── TABLET: hamburger menu and stats in two rows of three ─── */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
  .hero-stats .stat-item:last-child { text-align: left; }
}

/* ─── PARTNER LOGIN ─── */
.login-wrap { max-width: var(--max); margin: 0 auto; padding: 72px var(--pad) 100px; }
.login-card {
  max-width: 440px; margin: 0 auto; padding: 40px 36px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
}
.login-card h1 { font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; margin-bottom: 10px; }
.login-intro { color: var(--muted); font-size: 0.95rem; line-height: 1.6; margin-bottom: 24px; }
.login-card .form-error { margin: 0 0 16px; }
.login-btn { width: 100%; margin-top: 4px; }
.login-help { color: var(--muted); font-size: 0.85rem; margin-top: 20px; text-align: center; }
.login-help a { color: var(--brand-deep); }

/* ─── PARTNER PORTAL ─── */
.portal { max-width: 980px; margin: 0 auto; padding: 56px var(--pad) 100px; }
.portal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.portal-head h1 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.portal-head h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--brand-deep) 0%, var(--brand-light) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.portal-intro { color: var(--muted); font-size: 1rem; }
.portal-tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--border); padding-bottom: 16px; margin-bottom: 8px; }
.portal-tabs a {
  padding: 8px 16px; border-radius: 100px; background: var(--surface); color: var(--ink);
  text-decoration: none; font-size: 0.9rem; font-weight: 600; transition: background 0.2s, color 0.2s;
}
.portal-tabs a:hover { background: var(--brand-tint); color: var(--brand-deep); }
.portal-section { padding: 40px 0 8px; }
.portal-section h2 { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 6px; }
.portal-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 20px; }
.doc-list { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.doc-item {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
}
.doc-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-deep); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.doc-icon svg { width: 20px; height: 20px; }
.doc-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.doc-text strong { font-size: 1rem; font-weight: 600; }
.doc-text span { color: var(--muted); font-size: 0.85rem; }
.doc-btn { padding: 10px 20px; font-size: 0.9rem; }
.doc-soon { color: var(--muted); font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.claim-title { font-size: 1.2rem; font-weight: 700; margin: 36px 0 6px; }
.claim-form { margin-top: 20px; background: #f4f4f4; }
.claim-form .btn-primary { background: var(--brand); color: #fff; border-color: transparent; }
.claim-form .btn-primary:hover { background: var(--brand-deep); border-color: transparent; color: #fff; box-shadow: 0 10px 28px rgba(10,143,208,0.35); }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  :root { --pad: 20px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .logo-word { height: 19px; }

  .hero { padding-top: 40px; }
  .hero-headline { font-size: 2.5rem; }
  .hero-sub { font-size: 1rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions > * { width: 100%; }
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .hero-stats .stat-item:last-child { text-align: left; }
  .stat-num { font-size: 1.9rem; }
  .marquee-wrapper { width: 100vw; border-radius: 0; }
  .marquee-wrapper::before, .marquee-wrapper::after { display: none; }
  .marquee-pill { height: 140px !important; }
  .marquee-section, .marquee-row { gap: 10px; }

  .section-inner { padding: 64px var(--pad); }
  .legal { padding: 40px var(--pad) 64px; }
  .login-wrap { padding: 32px var(--pad) 64px; }
  .login-card { padding: 28px 22px; }
  .portal { padding: 32px var(--pad) 64px; }
  .portal-head { flex-direction: column; }
  .doc-item { flex-wrap: wrap; }
  .section-sub { margin-bottom: 40px; }
  .portfolio-grid, .usecases-grid, .steps-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
  .contact-form { padding: 24px; }

  .page-hero-top { padding-top: 20px; }
  .page-hero-inner { flex-direction: column; align-items: stretch; padding: 20px var(--pad) 48px; gap: 36px; }
  .page-hero-image { flex: none; width: 100%; height: 240px; }
  .page-headline { font-size: 2.4rem; }
  .stats-bar-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
  .stat-cell, .stat-cell:last-child { border-bottom: 1px solid var(--border); padding: 24px 16px; text-align: left; }
  .stat-cell:nth-child(odd) { border-right: 1px solid var(--border); }
  .stat-cell:nth-last-child(-n+2) { border-bottom: none; }
  .features-split { flex-direction: column; gap: 36px; }
  .features-image { flex: none; width: 100%; height: 240px; }
  .specs-table th, .specs-table td { padding: 12px 10px; font-size: 0.84rem; }
  .cta-band-inner { flex-direction: column; align-items: flex-start; padding: 60px var(--pad); }
  .cta-actions { flex-direction: column; width: 100%; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand, .footer-contact { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
}
