/* EconRig website — mirrors the app: deep navy mesh, brass accent, Liquid Glass cards. */
:root {
  --ink: #0d1221;
  --navy-1: #141a38;
  --navy-2: #1a1433;
  --accent: #fab84d;
  --accent-soft: rgba(250, 184, 77, 0.18);
  --text: #f5f6fa;
  --text-2: rgba(235, 238, 248, 0.68);
  --text-3: rgba(235, 238, 248, 0.42);
  --glass: rgba(255, 255, 255, 0.055);
  --glass-strong: rgba(255, 255, 255, 0.09);
  --stroke: rgba(255, 255, 255, 0.10);
  --radius: 22px;
  --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font: 17px/1.55 var(--sans);
  color: var(--text);
  background-color: var(--ink);
  background-image:
    radial-gradient(60% 45% at 65% 30%, rgba(250, 184, 77, 0.12), transparent 70%),
    radial-gradient(55% 40% at 50% 0%, var(--navy-1), transparent 75%),
    radial-gradient(45% 40% at 100% 5%, var(--navy-2), transparent 70%),
    radial-gradient(50% 45% at 0% 55%, rgba(15, 23, 46, 0.9), transparent 70%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(13, 18, 33, 0.55); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font: 700 20px var(--rounded); }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a { color: var(--text-2); font-size: 15px; padding: 7px 14px; border-radius: 999px; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--glass-strong); text-decoration: none; }

/* Typography */
.kicker { font: 600 13px var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
.label { font: 600 12px var(--sans); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-2); margin: 0 0 14px; }
h1, h2, h3 { font-family: var(--rounded); line-height: 1.12; margin: 0 0 12px; }
h1 { font-size: clamp(44px, 7vw, 72px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 38px); font-weight: 750; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(18px, 2.2vw, 21px); color: var(--text-2); max-width: 34em; }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }

/* Glass */
.glass {
  background: var(--glass);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  backdrop-filter: blur(24px) saturate(1.5);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 40px rgba(0, 0, 0, 0.25);
}
.glass.tinted { background: linear-gradient(160deg, rgba(250, 184, 77, 0.16), rgba(250, 184, 77, 0.05) 55%, rgba(255, 255, 255, 0.04)); }
.card { padding: 28px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 999px; font: 600 16px var(--sans);
  border: 1px solid var(--stroke); color: var(--text); background: var(--glass-strong); transition: transform .15s, background .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); background: rgba(255, 255, 255, 0.13); }
.btn.primary { background: var(--accent); color: #1d1405; border-color: transparent; box-shadow: 0 6px 24px rgba(250, 184, 77, 0.3); }
.btn.primary:hover { background: #ffc566; }
.btn.badge { cursor: default; }
.btn.badge:hover { transform: none; background: var(--glass-strong); }
.btn svg { width: 18px; height: 18px; flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Hero */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center; padding: 72px 0 56px; }
.phone { width: 100%; max-width: 320px; margin: 0 auto; border-radius: 46px; padding: 10px; background: linear-gradient(160deg, #3a3f52, #15182a);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.phone img { border-radius: 37px; width: 100%; height: auto; }
.hero .phone { transform: rotate(2deg); }

/* Sections */
section { padding: 44px 0; }
.section-head { max-width: 40em; margin-bottom: 26px; }

/* Statement */
.statement { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 36px; }
.heart { width: 48px; height: 48px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.heart svg { width: 24px; height: 24px; }
.promises { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.promises li { display: grid; grid-template-columns: 30px 1fr; gap: 12px; }
.promises svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
.promises strong { display: block; font-size: 16px; }
.promises span { color: var(--text-2); font-size: 15px; }

/* Screenshots */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.shot figcaption { text-align: center; margin-top: 16px; }
.shot figcaption strong { display: block; font-family: var(--rounded); font-size: 18px; }
.shot figcaption span { color: var(--text-2); font-size: 15px; }
figure { margin: 0; }

/* Module tiles (like the home screen) */
.category { margin-bottom: 30px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.tile { --t: 255, 255, 255; position: relative; padding: 18px; border-radius: var(--radius); border: 1px solid var(--stroke);
  background: linear-gradient(160deg, rgba(var(--t), 0.20), rgba(var(--t), 0.06) 60%, rgba(255, 255, 255, 0.03));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07); min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; }
.tile .icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(var(--t), 1), rgba(var(--t), 0.75)); box-shadow: 0 6px 18px rgba(var(--t), 0.35); }
.tile .icon svg { width: 24px; height: 24px; color: #fff; }
.tile h3 { margin: 18px 0 2px; font-size: 18px; }
.tile p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.4; }

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.feature { padding: 22px; }
.feature svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 12px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--text-2); font-size: 15px; margin: 0; }

/* Sources */
.sources { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 0 0 16px; }
.sources li { break-inside: avoid; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06); font-size: 15px; }
.sources a { color: var(--text); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 32px; }

/* Long-form pages (privacy, support, legal) */
.page { padding: 56px 0 24px; max-width: 780px; }
.page h2 { font-size: 24px; margin-top: 34px; }
.page h3 { margin-top: 22px; }
.page ul { padding-left: 22px; }
.page li { margin-bottom: 8px; }
.page .card { margin: 22px 0; }
.summary { padding: 24px 26px; }
.summary ul { margin: 0; }
.placeholder { color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; }

details { border-radius: 18px; margin-bottom: 10px; }
details summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details .answer { padding: 0 22px 18px; color: var(--text-2); }
details .answer p:last-child { margin-bottom: 0; }

/* Footer */
footer { border-top: 1px solid rgba(255, 255, 255, 0.06); margin-top: 40px; padding: 30px 0 44px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--text-2); }

/* Responsive */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; text-align: left; }
  .hero .phone { max-width: 280px; transform: none; }
  .statement { grid-template-columns: 1fr; padding: 26px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .shots { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-links a { padding: 6px 9px; font-size: 14px; }
  .nav-links .optional { display: none; }
  .features { grid-template-columns: 1fr; }
  .sources { columns: 1; }
  .card { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
