:root {
  --navy-deep: #0d1b2a;
  --navy: #1b263b;
  --slate: #415a77;
  --muted: #778da9;
  --deep-teal: #264653;
  --teal: #2a9d8f;
  --teal-bright: #3cb8a9;
  --gold: #e9c46a;
  --coral: #e76f51;
  --hb-plus: #d32f2f;
  --sand: #f4a261;
  --surface: #f3f6f5;
  --surface-2: #e8eeec;
  --text: #0d1b2a;
  --text-soft: #415a77;
  --border: rgba(13, 27, 42, 0.12);
  --focus-ring: rgba(42, 157, 143, 0.35);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(42, 157, 143, 0.12), transparent 55%),
    radial-gradient(900px 500px at 100% 20%, rgba(38, 70, 83, 0.1), transparent 50%),
    linear-gradient(180deg, #eef3f2 0%, var(--surface) 40%, #e6edeb 100%);
  line-height: 1.55;
}

body > main {
  flex: 1 0 auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--navy-deep);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
}

.skip-link:focus {
  top: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease), color 180ms var(--ease);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.btn-sm {
  padding: 0.55rem 0.95rem;
  font-size: 0.92rem;
}

.btn-primary {
  background: var(--teal);
  color: #fff;
}

.btn-primary:hover {
  background: var(--teal-bright);
}

.btn-ghost {
  background: transparent;
  color: #e8f4f2;
  border-color: rgba(232, 244, 242, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(232, 244, 242, 0.55);
}

.btn-outline {
  background: transparent;
  color: var(--deep-teal);
  border-color: rgba(38, 70, 83, 0.28);
}

.btn-outline:hover {
  background: rgba(42, 157, 143, 0.08);
  border-color: var(--teal);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(238, 243, 242, 0.82);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--deep-teal);
}

.header-brand img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 1.35rem;
  font-weight: 600;
  color: var(--slate);
}

.header-nav a:not(.btn):hover {
  color: var(--deep-teal);
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  transition: transform 200ms var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 1.5rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(238, 243, 242, 0.95);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.75rem 0.35rem;
  font-weight: 600;
  color: var(--slate);
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child {
  border-bottom: 0;
  color: var(--teal);
}

@media (min-width: 860px) {
  .header-nav {
    display: flex;
  }

  .nav-toggle,
  .mobile-nav {
    display: none !important;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #e8f4f2;
  background:
    linear-gradient(160deg, var(--navy-deep) 0%, var(--deep-teal) 48%, #1f6f68 100%);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 70% 80%, rgba(233, 196, 106, 0.12), transparent 55%),
    radial-gradient(circle at 15% 30%, rgba(60, 184, 169, 0.18), transparent 40%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 3.25rem 1.5rem 1.5rem;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #fff;
  animation: rise-in 700ms var(--ease) both;
}

.hero-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.25));
}

.hero-headline {
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: rgba(255, 255, 255, 0.94);
  animation: rise-in 700ms var(--ease) 80ms both;
}

.hero-lede {
  max-width: 36rem;
  margin-top: 1rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(232, 244, 242, 0.82);
  animation: rise-in 700ms var(--ease) 140ms both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
  animation: rise-in 700ms var(--ease) 200ms both;
}

.hero-visual {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-top: auto;
  padding: 0;
}

.board-mock {
  width: 100%;
  margin: 0;
  background: rgba(247, 247, 244, 0.97);
  color: var(--navy-deep);
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.32);
  overflow: hidden;
  transform: translateY(28px);
  opacity: 0;
  animation: board-rise 900ms var(--ease) 280ms forwards;
}

@keyframes board-rise {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.board-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  max-width: 1120px;
  margin: 0 auto;
  width: 100%;
  padding: 0.7rem 1rem;
  background: linear-gradient(180deg, #f7f7f4, #ebeee9);
  border-bottom: 1px solid var(--border);
}

.board-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c5c9c4;
}

.board-dot:nth-child(1) { background: #e76f51; }
.board-dot:nth-child(2) { background: #e9c46a; }
.board-dot:nth-child(3) { background: #2a9d8f; }

.board-title {
  margin-left: 0.55rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--slate);
}

.board-hint {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.board-grid {
  display: grid;
  grid-template-columns: 52px repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  padding: 0.85rem 1rem 1.15rem;
  max-width: 1120px;
  margin: 0 auto;
  background:
    linear-gradient(180deg, #f3f5f2, #e8ece8);
}

.board-col-head,
.board-row-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate);
  display: flex;
  align-items: center;
  justify-content: center;
}

.seat {
  min-height: 52px;
  padding: 0.2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
  border: 1px dashed #c5c9c4;
  display: flex;
  align-items: stretch;
  transition: border-color 160ms var(--ease), background 160ms var(--ease), box-shadow 160ms var(--ease);
}

.seat:not(.seat-empty) {
  background: transparent;
  border-color: transparent;
  border-style: solid;
}

.seat.seat-empty {
  background: rgba(255, 255, 255, 0.35);
  border-style: dashed;
}

.seat.is-drag-over {
  border-color: var(--teal);
  background: rgba(42, 157, 143, 0.12);
  box-shadow: inset 0 0 0 1px rgba(42, 157, 143, 0.35);
}

.seat-card {
  flex: 1;
  min-width: 0;
  min-height: 48px;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #c5c9c4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.seat-card:active {
  cursor: grabbing;
}

.seat-card.is-dragging {
  opacity: 0.35;
}

.seat-card-ghost {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  margin: 0;
  pointer-events: none;
  box-shadow: 0 12px 28px rgba(13, 27, 42, 0.22);
  opacity: 0.95;
}

.seat-card.seat-mod {
  background: #fdeceb;
  border-color: #e5b8b0;
}

.seat-card.seat-iso {
  background: #f6e9c8;
}

.seat-card.seat-blink {
  animation: yellow-blink 1.4s ease-in-out infinite;
}

@keyframes yellow-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(233, 196, 106, 0); background: #fff; }
  50% { box-shadow: 0 0 0 3px rgba(233, 196, 106, 0.55); background: #fff6d8; }
}

.seat-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tag {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
  line-height: 1.2;
}

.tag-neg { background: #dceeea; color: var(--deep-teal); }
.tag-s { background: #f4a261; color: #fff; }
.tag-ded { background: #264653; color: #fff; }
.tag-hb { background: #d32f2f; color: #fff; }
.tag-t { background: #2a9d8f; color: #fff; }

@media (min-width: 960px) {
  .hero-copy {
    padding: 4.5rem 1.5rem 2rem;
  }

  .board-chrome,
  .board-grid {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .seat {
    min-height: 58px;
  }

  .seat-card {
    min-height: 54px;
    font-size: 0.84rem;
  }
}

/* Sections */
.section {
  padding: 5.5rem 1.5rem;
}

.section-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--navy-deep);
  max-width: 28ch;
}

.section-lede {
  margin-top: 0.85rem;
  max-width: 40rem;
  font-size: 1.1rem;
  color: var(--text-soft);
}

.section-features {
  background: linear-gradient(180deg, #f7faf9 0%, #eef3f2 100%);
}

.feature-list {
  margin-top: 2.75rem;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--border);
}

.feature-item {
  padding: 1.55rem 0;
  border-bottom: 1px solid var(--border);
  display: grid;
  gap: 0.55rem;
}

@media (min-width: 720px) {
  .feature-item {
    grid-template-columns: minmax(220px, 0.72fr) 1fr;
    gap: 1.5rem;
    align-items: baseline;
  }
}

.feature-item h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--deep-teal);
}

.feature-item p {
  color: var(--slate);
  max-width: 42rem;
}

.section-offline {
  background:
    linear-gradient(135deg, var(--navy-deep), var(--deep-teal) 60%, #1a5c57);
  color: #e8f4f2;
}

.section-offline h2,
.section-offline .section-lede {
  color: inherit;
}

.section-offline .section-lede {
  color: rgba(232, 244, 242, 0.82);
}

.section-split {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 860px) {
  .section-split {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
  }
}

.plain-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.7rem;
}

.plain-list li {
  position: relative;
  padding-left: 1.15rem;
  font-weight: 600;
  color: rgba(232, 244, 242, 0.92);
}

.plain-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--teal-bright);
}

.split-visual {
  display: grid;
  place-items: center;
  min-height: 220px;
}

.offline-orb {
  position: relative;
  width: min(240px, 70vw);
  height: min(240px, 70vw);
  display: grid;
  place-items: center;
}

.orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(232, 244, 242, 0.28);
  box-shadow:
    inset 0 0 40px rgba(42, 157, 143, 0.2),
    0 0 0 18px rgba(255, 255, 255, 0.03);
  animation: orb-pulse 4.5s ease-in-out infinite;
}

.orb-core {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

@keyframes orb-pulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.05); opacity: 1; }
}

.section-security {
  background: #f4f7f6;
}

.security-row {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
  border-top: 1px solid var(--border);
  padding-top: 2rem;
}

@media (min-width: 800px) {
  .security-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 2.25rem;
  }
}

.security-row h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--deep-teal);
  margin-bottom: 0.55rem;
}

.security-row p {
  color: var(--slate);
  font-size: 0.98rem;
}

.section-cta {
  padding-bottom: 6rem;
}

.cta-panel {
  text-align: left;
  padding: 2.5rem 0 0;
  border-top: 1px solid var(--border);
}

.cta-panel .hero-cta .btn-primary {
  box-shadow: 0 12px 28px rgba(42, 157, 143, 0.28);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--navy-deep);
  color: rgba(232, 244, 242, 0.78);
  padding: 2.5rem 1.5rem 3rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-decoration: none;
}

.footer-brand img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.footer-note {
  max-width: 38rem;
  font-size: 0.92rem;
  margin-bottom: 1rem;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-meta a:hover {
  color: #fff;
}

.footer-copy {
  margin-top: 0.85rem;
  font-size: 0.9rem;
}

.footer-brand a {
  color: inherit;
}

/* Contact */
.contact-main {
  position: relative;
  z-index: 2;
  padding: 4.5rem 1.5rem 5.5rem;
}

.contact-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 860px) {
  .contact-layout {
    grid-template-columns: 0.9fr 1.1fr;
    gap: 3.5rem;
  }
}

.contact-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy-deep);
  max-width: 14ch;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 18px 50px rgba(13, 27, 42, 0.06);
}

.form-field {
  display: grid;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-field label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--deep-teal);
}

.form-hint {
  margin: -0.15rem 0 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #778da9;
}

.form-field input,
.form-field textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: #f7faf9;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
}

.form-field textarea {
  resize: vertical;
  min-height: 9rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: 3px solid var(--focus-ring);
  border-color: var(--teal);
  background: #fff;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin: 0 0 1rem;
  font-weight: 600;
}

.form-status.is-error {
  color: var(--coral);
}

.form-status.is-ok {
  color: var(--deep-teal);
}

.contact-card .btn-primary:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.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;
}

.rating-fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
  min-inline-size: 0;
}

.rating-fieldset legend {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--deep-teal);
  margin-bottom: 0.4rem;
  padding: 0;
}

.rating-stars {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.15rem;
}

.rating-stars input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.rating-stars label {
  cursor: pointer;
  font-size: 1.75rem;
  line-height: 1;
  color: #c5d0ce;
  transition: color 120ms ease, transform 120ms ease;
}

.rating-stars label::before {
  content: '★';
}

.rating-stars label:hover,
.rating-stars label:hover ~ label,
.rating-stars input:checked ~ label,
.rating-stars input:focus-visible + label {
  color: #d4a017;
}

.rating-stars label:hover {
  transform: scale(1.08);
}

.rating-stars input:focus-visible + label {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms var(--ease), transform 650ms var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-atmosphere,
  .orbit-a,
  .orbit-b,
  .seat-card.seat-blink,
  .orb-ring,
  .hero-brand,
  .hero-headline,
  .hero-lede,
  .hero-cta,
  .board-mock {
    animation: none !important;
  }
  .orbit-a,
  .orbit-b {
    translate: -100% 0;
  }
  .board-mock {
    opacity: 1;
    transform: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
