/* app/static/css/styles.css */
:root {
  --bg: #f5f7fd;
  --surface: #ffffff;
  --surface-2: #eef3ff;
  --surface-dark: #0a1440;
  --surface-dark-2: #13225f;
  --text: #17233f;
  --text-soft: #61708f;
  --line: #e4e9f5;

  --brand-blue: #4f73ff;
  --brand-blue-2: #345fe8;
  --brand-blue-dark: #12245f;
  --brand-yellow: #ffd600;
  --brand-yellow-soft: #fff5b8;

  --hero-glow: rgba(79, 115, 255, 0.12);
  --shadow: 0 20px 60px rgba(16, 30, 80, 0.08);
  --shadow-soft: 0 10px 30px rgba(16, 30, 80, 0.05);

  --max: 1280px;
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #f8faff 0%, #f4f6fb 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

body {
  min-height: 100vh;
}

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

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

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(228, 233, 245, 0.9);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(79, 115, 255, 0.12);
  box-shadow: 0 10px 24px rgba(79, 115, 255, 0.14);
  padding: 2px;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.08;
}

.logo-text strong {
  font-size: 1.02rem;
  color: var(--text);
}

.logo-text span {
  font-size: 0.9rem;
  color: var(--text-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--text-soft);
  font-weight: 700;
  font-size: 0.98rem;
}

.nav a:hover {
  color: var(--brand-blue-dark);
}

.hero {
  padding: 56px 0 38px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 560px) minmax(0, 560px);
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--brand-blue);
}

.eyebrow.light {
  color: #c9d8ff;
}

h1 {
  margin: 0 0 18px;
  max-width: 520px;
  font-size: clamp(1.9rem, 3vw, 3.15rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: #162344;
}

h2 {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  line-height: 1.2;
}

p {
  margin: 0;
}

.lead {
  max-width: 540px;
  color: var(--text-soft);
  font-size: 1.12rem;
}

.cta-row {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.btn {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #0f1f4a;
  background: linear-gradient(135deg, var(--brand-yellow), #ffe867);
  box-shadow: 0 16px 34px rgba(255, 214, 0, 0.24);
}

.btn-secondary {
  color: var(--brand-blue-dark);
  background: #ffffff;
  border: 1px solid rgba(79, 115, 255, 0.16);
  box-shadow: var(--shadow-soft);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: #edf2ff;
  border: 1px solid #e2e9ff;
  color: #39518f;
  font-weight: 700;
  font-size: 0.94rem;
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  padding-right: 18px;
}

.hero-visual-shell {
  position: relative;
  width: 100%;
  max-width: 580px;
  min-height: 520px;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

.hero-visual-shell::before {
  content: "";
  position: absolute;
  inset: 70px 20px 30px 70px;
  background: radial-gradient(circle, var(--hero-glow) 0%, rgba(79, 115, 255, 0.02) 70%);
  filter: blur(10px);
  z-index: 0;
}

.hero-visual-card {
  position: relative;
  margin-top: 42px;
  margin-left: auto;
  transform: translateX(70px);
  width: 430px;
  min-height: 405px;
  padding: 28px;
  border-radius: 30px;
  background: linear-gradient(160deg, #13235d 0%, #0b153d 100%);
  color: #f6f8ff;
  box-shadow: 0 28px 70px rgba(9, 17, 52, 0.22);
  z-index: 1;
}

.hero-visual-card h3 {
  margin-top: 8px;
  font-size: 1.7rem;
  color: #ffffff;
}

.hero-visual-card p {
  color: #cad5ff;
  font-size: 1.01rem;
}

.hero-lommy {
  position: absolute;
  left: -28px;
  bottom: 12px;
  width: 235px;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 16px 28px rgba(10, 20, 70, 0.18));
}

.lommy-intro {
  position: absolute;
  left: -6px;
  top: 148px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(79, 115, 255, 0.12);
  box-shadow: 0 10px 24px rgba(16, 30, 80, 0.08);
  backdrop-filter: blur(8px);
}

.lommy-intro strong {
  font-size: 0.98rem;
  line-height: 1.1;
  color: #162344;
}

.lommy-intro span {
  font-size: 0.88rem;
  line-height: 1.1;
  color: var(--text-soft);
}

.mini-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 214, 0, 0.14);
  border: 1px solid rgba(255, 214, 0, 0.16);
  color: #fff2a8;
  font-weight: 800;
  font-size: 0.84rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 24px;
}

.stat-box {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.stat-box strong {
  display: block;
  font-size: 1.05rem;
  color: #ffffff;
  margin-bottom: 4px;
  text-align: left;
}

.stat-box span {
  display: block;
  color: #d7e1ff;
  font-size: 0.96rem;
  text-align: left;
}

.section {
  padding: 34px 0 76px;
}

.section-soft {
  padding-top: 24px;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading p {
  color: var(--text-soft);
  font-size: 1.04rem;
}

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

.feature-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.feature-card h3 {
  color: #19284b;
}

.feature-card p {
  color: var(--text-soft);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #edf2ff, #f7f9ff);
  border: 1px solid #e1e8ff;
  color: var(--brand-blue);
  font-weight: 900;
  font-size: 1.15rem;
  margin-bottom: 16px;
}

.section-darkband {
  padding-top: 8px;
}

.darkband-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
  background: linear-gradient(135deg, #09123a 0%, #13225d 100%);
  color: #f7f9ff;
  border-radius: 34px;
  padding: 36px;
  box-shadow: 0 28px 70px rgba(12, 20, 55, 0.2);
}

.darkband-text {
  color: #d1dcff;
  max-width: 680px;
  font-size: 1.05rem;
}

.darkband-panel {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 26px;
  padding: 14px;
}

.panel-line {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 18px 16px;
  border-radius: 16px;
}

.panel-line + .panel-line {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.panel-line strong {
  font-size: 1rem;
  color: #ffffff;
}

.panel-line a {
  color: #ffe96d;
  font-weight: 800;
}

.site-footer {
  margin-top: 54px;
  padding: 30px 0 44px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  max-width: 560px;
}

.footer-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
  border-radius: 12px;
}

.footer-brand p {
  color: var(--text-soft);
  margin-top: 6px;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-content: flex-start;
}

.footer-links a {
  color: var(--text-soft);
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--brand-blue-dark);
}

.prose {
  max-width: 900px;
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid var(--line);
  border-radius: 30px;
  padding: 34px;
  box-shadow: var(--shadow);
}

.prose h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 18px;
  color: #162447;
}

.prose h2 {
  margin-top: 28px;
  font-size: 1.28rem;
  color: #1a2a52;
}

.prose p,
.prose li {
  color: var(--text-soft);
}

.prose ul {
  padding-left: 20px;
}

.hero-support {
  padding-bottom: 10px;
}

.support-hero {
  max-width: 860px;
}

.support-card {
  background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow);
}

.support-card-full {
  max-width: 980px;
  margin: 0 auto;
}

.support-card h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
  color: #1a2a52;
}

.support-card h3 {
  margin-bottom: 12px;
  font-size: 1.15rem;
  color: #1a2a52;
}

.support-card p,
.support-card li {
  color: var(--text-soft);
}

.support-email-box {
  margin: 18px 0 14px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f6f8ff;
  border: 1px solid #e2e9ff;
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  font-size: 1.05rem;
  color: #162344;
}

.support-email-link {
  color: #162344;
  text-decoration: none;
  font-weight: 800;
}

.support-email-link:hover {
  text-decoration: underline;
}

.support-note {
  margin-top: 8px;
}

.support-subsections {
  margin-top: 26px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 20px;
  align-items: start;
}

.support-subcard {
  background: #fbfcff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  align-self: start;
}

.support-list {
  margin: 0;
  padding-left: 20px;
}

.support-list li + li {
  margin-top: 8px;
}

.privacy-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.privacy-block {
  padding: 28px 30px;
  border-radius: 24px;
  background: #fbfcff;
  border: 1px solid var(--line);
}

.privacy-block h2 {
  margin-bottom: 14px;
  font-size: 1.22rem;
  color: #1a2a52;
}

.privacy-block p,
.privacy-block li {
  color: var(--text-soft);
}

.privacy-block .support-list {
  margin-top: 8px;
}

.privacy-block-last {
  margin-bottom: 4px;
}

@media (max-width: 1180px) {
  .container {
    width: min(var(--max), calc(100% - 28px));
  }

  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

  h1 {
    font-size: clamp(1.85rem, 3.2vw, 2.9rem);
  }

  .hero-copy,
  .lead {
    max-width: 100%;
  }
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    max-width: 100%;
  }

  h1 {
    max-width: 100%;
    font-size: clamp(2rem, 5vw, 3rem);
  }

  .lead {
    max-width: 100%;
  }

  .hero-visual {
    justify-content: center;
  }

  .hero-visual-shell {
    max-width: 620px;
    min-height: auto;
  }

  .hero-visual-card {
    width: 100%;
    margin-top: 0;
  }

  .hero-lommy {
    position: absolute;
    left: -10px;
    bottom: 10px;
    width: 175px;
  }

  .lommy-intro {
    left: 8px;
    top: 92px;
  }

  .feature-grid,
  .darkband-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual-card {
    transform: none;
  }

  .support-subsections {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(var(--max), calc(100% - 20px));
  }

  .header-inner {
    min-height: auto;
    padding: 14px 0;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav {
    gap: 14px;
  }

  .hero {
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
    line-height: 1.1;
  }

  .lead {
    font-size: 1rem;
  }

  .hero-visual-shell {
    max-width: 100%;
    min-height: auto;
  }

  .hero-visual-card {
    width: 100%;
    min-height: auto;
    padding: 24px;
    margin-top: 0;
  }

  .hero-lommy {
    display: none;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .darkband-grid,
  .prose {
    padding: 24px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .lommy-intro {
    display: none;
  }

  .hero-visual-card {
    transform: none;
  }

  .support-card {
    padding: 24px;
  }

  .support-subcard {
    padding: 18px;
  }

  .privacy-block {
    padding: 22px 18px;
  }
}

@media (max-width: 520px) {
  .cta-row,
  .hero-points {
    gap: 10px;
  }

  .btn {
    width: 100%;
  }

  .panel-line {
    flex-direction: column;
    align-items: flex-start;
  }
}