/* Karonas — Institutional Landing v1 */

:root {
  --primary: #1565C0;
  --primary-dark: #0D47A1;
  --accent: #26A69A;
  --accent-light: #4DB6AC;
  --bg: #F5F7FA;
  --bg-alt: #EEF2F7;
  --surface: #FFFFFF;
  --text: #1A2332;
  --text-muted: #5A6B7D;
  --border: #D8E0EA;
  --shadow: 0 4px 24px rgba(21, 101, 192, 0.08);
  --shadow-lg: 0 20px 60px rgba(13, 71, 161, 0.15);
  --radius: 14px;
  --radius-sm: 10px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --header-h: 72px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.container {
  width: min(1120px, 100% - 2rem);
  margin-inline: auto;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.header--scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--primary);
}

.logo__icon {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--primary);
}

.nav__cta {
  background: var(--primary);
  color: #fff !important;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s !important;
}

.nav__cta:hover {
  background: var(--primary-dark);
}

.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-btn span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.6rem;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--primary);
  color: #fff;
}

.btn--primary:hover {
  background: var(--primary-dark);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.25);
}

/* Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 4rem;
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 45%, var(--accent) 100%);
  z-index: 0;
}

.hero__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.06) 0%, transparent 40%);
}

.hero__bg::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--bg), transparent);
}

.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.hero__lead {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 32rem;
  margin-bottom: 2rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero__stats {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.stat span {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Phone mockup */
.phone-mockup {
  justify-self: center;
  width: min(300px, 100%);
  background: #1a2332;
  border-radius: 32px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.phone-mockup__screen {
  background: var(--bg);
  border-radius: 24px;
  padding: 1.5rem;
  min-height: 340px;
  position: relative;
}

.mock-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--surface);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  margin-bottom: 0.75rem;
}

.mock-card p {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.mock-card small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mock-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.mock-dot--teal {
  background: var(--accent);
}

.mock-route {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  height: 80px;
}

.mock-route__line {
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
  transform: translateY(-50%);
}

.mock-route__pin {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-route__pin--a { left: 5%; }
.mock-route__pin--b { right: 5%; background: var(--accent); }

/* Sections */
.section {
  padding: 5rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section__header h2,
.split__content h2 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section__header p,
.split__content > p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.step:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.step__num {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--bg-alt);
  line-height: 1;
}

.step__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.step__icon svg {
  width: 24px;
  height: 24px;
  color: #fff;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Split sections */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.split--reverse .split__content {
  order: 2;
}

.split--reverse .split__card {
  order: 1;
}

.feature-list {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text);
}

.feature-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.split__card {
  display: flex;
  justify-content: center;
}

.metric-card {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-radius: var(--radius);
  padding: 2.5rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 320px;
}

.metric-card__label {
  display: block;
  font-size: 0.85rem;
  opacity: 0.85;
  margin-bottom: 0.5rem;
}

.metric-card__value {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.metric-card__hint {
  font-size: 0.85rem;
  opacity: 0.8;
}

.search-preview {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 340px;
  border: 1px solid var(--border);
}

.search-preview__field {
  margin-bottom: 1rem;
}

.search-preview__field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.search-preview__field span {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  padding: 0.65rem 0.9rem;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.search-preview__btn {
  margin-top: 0.5rem;
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 0.85rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
}

/* Safety */
.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.safety-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform 0.2s;
}

.safety-card:hover {
  transform: translateY(-3px);
}

.safety-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 1rem;
  background: var(--bg);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.safety-card__icon svg {
  width: 26px;
  height: 26px;
  color: var(--primary);
}

.safety-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.safety-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Download */
.download {
  background: linear-gradient(160deg, var(--primary-dark), var(--primary) 60%, var(--accent));
  color: #fff;
}

.download__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.download .section__label {
  color: rgba(255, 255, 255, 0.8);
}

.download h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.download__content > p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.75rem;
}

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.store-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 0.65rem 1.1rem;
  color: #fff;
  transition: background 0.2s;
  min-width: 160px;
}

.store-btn:hover {
  background: rgba(0, 0, 0, 0.5);
}

.store-btn svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

.store-btn span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-btn small {
  font-size: 0.65rem;
  opacity: 0.8;
}

.store-btn span > :not(small) {
  font-size: 1rem;
  font-weight: 600;
}

.download__note {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6) !important;
}

.app-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  backdrop-filter: blur(8px);
}

.app-badge svg {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
}

.app-badge strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.app-badge span {
  font-size: 0.9rem;
  opacity: 0.8;
}

/* Footer */
.footer {
  background: #121A27;
  color: rgba(255, 255, 255, 0.75);
  padding-top: 3rem;
}

.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2rem;
}

.logo--footer {
  color: #fff;
  margin-bottom: 0.75rem;
}

.logo--footer .logo__icon {
  color: var(--accent);
}

.footer__brand p {
  font-size: 0.9rem;
  max-width: 280px;
}

.footer__links h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.footer__links a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  transition: color 0.2s;
}

.footer__links a:hover {
  color: #fff;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.25rem 0;
}

.footer__bottom p {
  font-size: 0.8rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner,
  .split,
  .download__inner {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
  }

  .phone-mockup {
    width: min(260px, 80%);
  }

  .steps {
    grid-template-columns: 1fr;
  }

  .safety-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .split--reverse .split__content,
  .split--reverse .split__card {
    order: unset;
  }

  .footer__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand p {
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s, opacity 0.25s;
  }

  .nav--open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav a {
    font-size: 1rem;
    padding: 0.5rem 0;
  }

  .nav__cta {
    text-align: center;
    width: 100%;
  }

  .menu-btn {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding-bottom: 3rem;
  }

  .hero__stats {
    gap: 1.25rem;
  }

  .section {
    padding: 3.5rem 0;
  }

  .safety-grid {
    grid-template-columns: 1fr;
  }
}
