:root {
  --ink: #10233a;
  --ink-soft: #2a4060;
  --steel: #3d6b8c;
  --blueprint: #1a3a5c;
  --paper: #eef2f5;
  --paper-deep: #e2e8ef;
  --line: #c5d0db;
  --accent: #b86b2a;
  --accent-hover: #9a5720;
  --white: #ffffff;
  --shadow-soft: 0 18px 40px rgba(16, 35, 58, 0.08);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
  --container: min(1120px, calc(100% - 2.5rem));
  --header-h: 4.25rem;
  --dev-banner-h: 2.1rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(61, 107, 140, 0.12), transparent 55%),
    linear-gradient(180deg, #f7f9fb 0%, var(--paper) 40%, #f4f7fa 100%);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--steel);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--accent);
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.85rem); }
h3 { font-size: clamp(1.45rem, 2.2vw, 1.85rem); }

p { margin: 0 0 1rem; }

.container {
  width: var(--container);
  margin-inline: auto;
}

.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.65rem;
}

.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.75rem;
}

.section-lead {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 38rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  overflow: visible;
  background: rgba(247, 249, 251, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 249, 251, 0.96);
}

.header-inner {
  position: relative;
  z-index: 3;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.dev-banner {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0.45rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  animation: dev-banner-blink 2.8s ease-in-out infinite;
}

.dev-banner p {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}

@keyframes dev-banner-blink {
  0%,
  45% {
    background: #7a3e14;
    color: #fff8f0;
  }
  55%,
  100% {
    background: #fff1d6;
    color: #7a3e14;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--ink);
}

.brand:hover { color: var(--ink); }

.brand-image {
  width: 4.5rem;
  height: 2.5rem;
  object-fit: contain;
  object-position: center;
  border: 1px solid var(--line);
  background: #1a1410;
  flex-shrink: 0;
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.nav a {
  text-decoration: none;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--ink);
}

.nav-link-muted {
  color: var(--steel) !important;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.nav-dropdown-toggle::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 16rem;
  padding: 0.45rem;
  margin: 0;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(16, 35, 58, 0.18);
  z-index: 200;
}

.nav-dropdown.open .nav-dropdown-menu {
  display: grid !important;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.8rem 0.95rem !important;
  color: var(--ink) !important;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border: 0 !important;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  background: var(--paper);
  color: var(--blueprint) !important;
}

.login-links {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: var(--white);
  padding: 0.55rem;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

.btn-secondary {
  background: var(--blueprint);
  color: var(--white);
  border-color: var(--blueprint);
}

.btn-secondary:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}

.btn-nav {
  padding: 0.55rem 1rem;
  background: var(--blueprint);
  color: var(--white) !important;
  border-color: var(--blueprint);
}

.btn-nav:hover {
  background: var(--ink);
  color: var(--white) !important;
}

.text-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--accent);
}

.text-link:hover { color: var(--accent-hover); }

/* Hero — full-bleed */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: flex-start;
  overflow: hidden;
  color: var(--white);
  background: #1a1410;
}

.hero-visual {
  position: absolute;
  inset: 0;
  background: #1a1410;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      105deg,
      rgba(12, 10, 8, 0.82) 0%,
      rgba(18, 14, 10, 0.62) 32%,
      rgba(28, 20, 12, 0.22) 58%,
      rgba(20, 14, 10, 0.08) 100%
    ),
    linear-gradient(180deg, rgba(10, 8, 6, 0.22) 0%, transparent 30%, rgba(10, 8, 6, 0.3) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(1.5rem, 3.5vh, 2.25rem) 0 clamp(2.5rem, 6vh, 4rem);
  max-width: 42rem;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 0 0 0.55rem;
  line-height: 1;
  color: var(--white);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 500;
  max-width: 22ch;
  margin-bottom: 0.85rem;
}

.hero-story {
  position: relative;
  max-width: 40rem;
  margin-bottom: 0.9rem;
  min-height: 16rem;
}

.hero-story-lang {
  opacity: 1;
  transition: opacity 0.35s ease;
}

.hero-story-lang.is-fading {
  opacity: 0;
}

.hero-story p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.98rem;
  line-height: 1.6;
  margin-bottom: 0.7rem;
}

.hero-story p:last-child {
  margin-bottom: 0;
}

.hero-story-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: #f0d2a8;
}

.hero-lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  max-width: 34rem;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Strip */
.strip {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.92);
  padding: 1.35rem 0;
  border-top: 3px solid var(--accent);
}

.strip-text {
  margin: 0;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.65rem;
}

.check-list li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.7rem;
  height: 0.7rem;
  border: 2px solid var(--accent);
  background: linear-gradient(135deg, var(--accent) 50%, transparent 50%);
}

.about-tagline {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--blueprint);
  margin-bottom: 0.75rem;
}

/* Profile */
.profile {
  padding-top: 0;
}

.profile-panel {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 2rem;
  padding: clamp(2rem, 4vw, 3rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(238, 242, 245, 0.9)),
    repeating-linear-gradient(
      -45deg,
      transparent,
      transparent 10px,
      rgba(61, 107, 140, 0.04) 10px,
      rgba(61, 107, 140, 0.04) 11px
    );
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.profile-stats {
  display: grid;
  gap: 1.25rem;
  align-content: center;
  border-left: 1px solid var(--line);
  padding-left: 2rem;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--blueprint);
  line-height: 1.1;
}

.stat-label {
  display: block;
  font-size: 0.92rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
}

/* Products */
.product-flagship {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 1.75rem;
  background: linear-gradient(120deg, #16324f 0%, #1f4668 55%, #2a5578 100%);
  color: rgba(255, 255, 255, 0.9);
}

.product-flagship h3,
.product-flagship .product-badge {
  color: var(--white);
}

.product-flagship p {
  color: rgba(255, 255, 255, 0.85);
}

.product-flagship .feature-list li {
  color: rgba(255, 255, 255, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.15);
}

.product-flagship .feature-list li::before {
  background: var(--accent);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.product {
  padding: 1.6rem 1.5rem 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--steel);
}

.product-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.7rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.feature-list li {
  position: relative;
  padding: 0.45rem 0 0.45rem 1.1rem;
  border-bottom: 1px solid var(--paper-deep);
  font-size: 0.94rem;
  color: var(--ink-soft);
}

.feature-list li:last-child { border-bottom: 0; }

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--steel);
}

.flagship-row {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.flagship-row h3 {
  margin-bottom: 1rem;
}

.flagship-row ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.flagship-row li {
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--ink-soft);
}

/* Services */
.services {
  background:
    linear-gradient(180deg, transparent, rgba(226, 232, 239, 0.65)),
    var(--paper);
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.5rem;
}

.service-list li {
  padding: 1rem 1.15rem;
  background: var(--white);
  border-left: 3px solid var(--blueprint);
  font-weight: 500;
  color: var(--ink-soft);
}

/* Why */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.why-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.why-list li {
  padding: 0.95rem 1.1rem;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-weight: 500;
}

/* Contact */
.contact {
  background:
    linear-gradient(160deg, #12283f 0%, #1a3a5c 60%, #234a6d 100%);
  color: rgba(255, 255, 255, 0.9);
}

.contact h2,
.contact .eyebrow {
  color: var(--white);
}

.contact .eyebrow { color: rgba(255, 255, 255, 0.7); }

.contact .section-lead {
  color: rgba(255, 255, 255, 0.82);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.contact-details {
  margin-top: 1.75rem;
  display: grid;
  gap: 0.85rem;
}

.contact-details p {
  margin: 0;
  display: grid;
  gap: 0.2rem;
}

.contact-details span {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}

.contact-details a {
  color: #f0c9a0;
}

.contact-form {
  display: grid;
  gap: 0.95rem;
  padding: 1.6rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.contact-form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(8, 20, 36, 0.35);
  color: var(--white);
  font: inherit;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(184, 107, 42, 0.65);
  outline-offset: 1px;
  border-color: transparent;
}

.form-note {
  margin: 0;
  font-size: 0.9rem;
  color: #f0c9a0;
}

/* Footer */
.site-footer {
  background: #0b1726;
  color: rgba(255, 255, 255, 0.72);
  padding: 2.5rem 0 2rem;
}

.footer-inner {
  display: grid;
  gap: 1.25rem;
}

.footer-brand .brand-text {
  color: var(--white);
  display: inline-block;
  margin-bottom: 0.35rem;
}

.footer-brand p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.35rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-nav a:hover { color: var(--white); }

.footer-copy {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

/* Inner pages */
.page-shell {
  min-height: calc(100vh - var(--header-h) - 10rem);
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.page-panel {
  max-width: 32rem;
  margin: 0 auto;
  padding: 2rem;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}

.page-panel h1 {
  font-size: clamp(2rem, 3vw, 2.5rem);
}

.auth-form,
.download-panel {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.auth-form label,
.download-panel label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.auth-form input {
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  font: inherit;
  background: var(--paper);
}

.download-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.download-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  background: var(--paper);
}

.download-list span {
  font-weight: 500;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.delay-1 { transition-delay: 0.12s; }
.delay-2 { transition-delay: 0.22s; }
.delay-3 { transition-delay: 0.32s; }
.delay-4 { transition-delay: 0.42s; }


@media (max-width: 960px) {
  .about-grid,
  .profile-panel,
  .product-flagship,
  .product-grid,
  .why-grid,
  .contact-grid,
  .service-list {
    grid-template-columns: 1fr;
  }

  .profile-stats {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 1.5rem;
    grid-template-columns: repeat(3, 1fr);
  }

}

@media (max-width: 780px) {
  .nav-toggle { display: flex; }

  .nav {
    position: fixed;
    inset: calc(var(--header-h) + var(--dev-banner-h)) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem 1.25rem 1.25rem;
    background: rgba(247, 249, 251, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav.open { display: flex; }

  .nav a {
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--paper-deep);
  }

  .nav .btn-nav {
    margin-top: 0.75rem;
    text-align: center;
    width: 100%;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-menu {
    position: static;
    display: none;
    min-width: 0;
    margin-top: 0.35rem;
    box-shadow: none;
  }

  .nav-dropdown.open .nav-dropdown-menu {
    display: grid !important;
  }

  .profile-stats {
    grid-template-columns: 1fr;
  }

  .download-list li {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .dev-banner {
    animation: none !important;
    background: #7a3e14;
    color: #fff8f0;
  }

  .reveal,
  .btn {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}
