/* Operanet public site — same family as Control/Cloud consoles. */

:root {
  --bg: #e9eee9;
  --bg-deep: #d4e0d8;
  --surface: #f7faf7;
  --text: #122018;
  --muted: #5a6b62;
  --ink: #0c1612;
  --border: #c9d5cd;
  --accent: #0f6b5c;
  --accent-hover: #0a5247;
  --accent-soft: #d8eee8;
  --font: "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Fraunces", "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 60% at 85% 10%, rgba(15, 107, 92, 0.14), transparent 55%),
    linear-gradient(165deg, var(--bg-deep) 0%, var(--bg) 42%, #eef3ef 100%);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 20;
  padding: 8px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.skip:focus { left: 8px; }

.site-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 4vw, 48px);
}

.brand {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); text-decoration: none; }

.site-nav {
  display: flex;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
}
.site-nav a { color: var(--muted); }
.site-nav a:hover { color: var(--ink); }

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 88px);
  padding: 24px clamp(20px, 4vw, 48px) 64px;
}

.hero-brand {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
  animation: rise 700ms ease-out both;
}

.hero h1 {
  margin: 0 0 16px;
  font-family: var(--font);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.35;
  max-width: 22em;
  animation: rise 700ms ease-out 80ms both;
}

.hero-lede {
  margin: 0 0 28px;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.02rem;
  animation: rise 700ms ease-out 140ms both;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  animation: rise 700ms ease-out 200ms both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn.primary {
  background: var(--accent);
  color: #f4faf7;
}
.btn.primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border);
}
.btn.ghost:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  text-decoration: none;
}

.hero-visual {
  position: relative;
  min-height: 320px;
  border-radius: 0;
  overflow: hidden;
  animation: fade 900ms ease-out 120ms both;
}

.plane {
  position: absolute;
  inset: 8% 6% 18% 10%;
  background:
    linear-gradient(135deg, rgba(15, 107, 92, 0.22), transparent 55%),
    linear-gradient(200deg, #1a3d34 0%, #0f6b5c 48%, #8eb9a8 100%);
  transform: skewY(-3deg);
}
.plane-2 {
  inset: 22% 0 0 28%;
  opacity: 0.55;
  transform: skewY(4deg) scale(0.92);
  background:
    linear-gradient(160deg, rgba(12, 22, 18, 0.35), transparent 50%),
    linear-gradient(20deg, #245a4e, #6d9a88);
}

.ledger {
  position: absolute;
  right: 8%;
  bottom: 10%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
  padding: 18px 20px;
  background: rgba(247, 250, 247, 0.92);
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.ledger .ok { color: var(--accent); font-weight: 600; }

.strip {
  padding: 48px clamp(20px, 4vw, 48px);
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  max-width: 720px;
}
.strip h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.strip p {
  margin: 0;
  color: var(--muted);
}

.portals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.portals article {
  padding: 32px clamp(20px, 3vw, 36px);
  border-right: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}
.portals article:last-child { border-right: 0; }
.portals h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 650;
  color: var(--ink);
}
.portals p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  max-width: 28em;
}
.portals a { font-size: 14px; font-weight: 600; }

.site-foot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 28px clamp(20px, 4vw, 48px);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.site-foot .muted { color: var(--muted); font-weight: 400; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 12px;
  }
  .hero-visual { min-height: 240px; order: -1; }
  .portals { grid-template-columns: 1fr; }
  .portals article {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}
