/* Cymora landing — Delon-ported layout, white/black theme.
   Typography: Inter Tight for display, Inter for body. */

:root {
  --color-ink: #121212;
  --color-ink-soft: #494949;
  --color-ink-muted: #767676;
  --color-border: #dfdfdf;
  --color-border-nav: #a8a8a8;
  --color-surface: #ffffff;
  --color-surface-hover: #fafafa;

  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-nav: cubic-bezier(0.65, 0.05, 0, 1);

  color-scheme: light;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html,
body {
  min-height: 100%;
  background: var(--color-surface);
  color: var(--color-ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" on, "liga" on, "calt" on, "ss06" on;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  font-family: var(--font-body);
  line-height: 1.5;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  padding: 0;
}

/* ========== NAVBAR ========== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  border-bottom: 1px solid var(--color-border-nav);
  background: var(--color-surface);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss06";
}

.nav-inner {
  width: 100%;
  max-width: min(100vw, 1920px);
  margin: 0 auto;
  padding: 1em 2.5em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2em;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.55em;
  flex-shrink: 0;
  color: var(--color-ink);
}

.nav-brand-mark {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  animation: brandSpinIn 0.8s var(--ease) forwards;
}

@keyframes brandSpinIn {
  0% {
    transform: rotate(-180deg) scale(0.6);
    opacity: 0;
  }
  70% {
    transform: rotate(8deg) scale(1.04);
    opacity: 1;
  }
  100% {
    transform: rotate(0deg) scale(1);
    opacity: 1;
  }
}

.nav-brand-text {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-ink);
  line-height: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
  justify-content: center;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-display);
  font-size: 0.9375em;
  font-weight: 400;
  color: var(--color-ink);
  padding: 0.5em 0.875em;
  display: inline-flex;
  align-items: center;
  gap: 0.2em;
  line-height: 1;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav-link:hover {
  opacity: 0.72;
}

.nav-caret {
  width: 0.75em;
  height: 0.75em;
  transition: transform 0.2s;
}

.nav-item.open .nav-caret {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.5em;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease-out, transform 0.2s ease-out;
  z-index: 10001;
}

.nav-item.open .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.nav-dropdown-inner {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.623em;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  padding: 0.5em;
  min-width: 14em;
}

.nav-dropdown-wide .nav-dropdown-inner {
  min-width: 20em;
}

.nav-sub {
  display: flex;
  align-items: center;
  gap: 0.75em;
  padding: 0.625em 0.75em;
  border-radius: 0.31em;
  transition: background 0.15s;
  color: var(--color-ink);
}

.nav-sub:hover {
  background: var(--color-surface-hover);
}

.nav-sub-icon {
  width: 1.5em;
  height: 1.5em;
  flex-shrink: 0;
  color: var(--color-ink-soft);
  display: inline-flex;
}

.nav-sub-icon svg {
  width: 100%;
  height: 100%;
}

.nav-sub-label {
  font-family: var(--font-display);
  font-size: 0.9em;
  font-weight: 500;
  line-height: 1.3;
  color: var(--color-ink);
}

.nav-sub-desc {
  font-family: var(--font-display);
  font-size: 0.8em;
  font-weight: 400;
  color: var(--color-ink-muted);
  line-height: 1.3;
  margin-top: 1px;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.5em;
  flex-shrink: 0;
}

.nav-btn {
  font-family: var(--font-display);
  font-size: 0.9375em;
  font-weight: 500;
  color: var(--color-ink);
  padding: 0.75em 1.5em;
  border: 1px solid var(--color-ink);
  border-radius: 0.31em;
  background: var(--color-surface);
  transition:
    background 0.735s var(--ease-nav),
    color 0.735s var(--ease-nav),
    border-color 0.735s var(--ease-nav);
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-btn:hover {
  background: var(--color-ink);
  color: var(--color-surface);
}

.nav-btn-primary {
  color: var(--color-surface);
  background: var(--color-ink);
}

.nav-btn-primary:hover {
  background: #000;
  color: var(--color-surface);
  border-color: #000;
}

.nav-mobile-toggle {
  display: none;
  padding: 0.5em;
  color: var(--color-ink);
  align-items: center;
  justify-content: center;
}

.nav-mobile-toggle .nav-mobile-close {
  display: none;
}

.nav.mobile-open .nav-mobile-toggle .nav-mobile-open {
  display: none;
}

.nav.mobile-open .nav-mobile-toggle .nav-mobile-close {
  display: inline-block;
}

.nav-mobile-panel {
  display: none;
  border-top: 1px solid var(--color-border);
  padding: 1.25em 1.5em 1.75em;
  background: var(--color-surface);
  flex-direction: column;
  gap: 0.25em;
}

.nav-mobile-link {
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 500;
  color: var(--color-ink);
  padding: 0.75em 0;
  border-bottom: 1px solid var(--color-border);
}

.nav-mobile-link:last-of-type {
  border-bottom: none;
}

.nav-mobile-cta {
  display: flex;
  gap: 0.5em;
  margin-top: 1em;
}

.nav-mobile-cta .nav-btn {
  flex: 1;
  justify-content: center;
}

.nav.mobile-open .nav-mobile-panel {
  display: flex;
}

/* ========== HERO ========== */

.hero {
  position: relative;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
}

.hero-spacer {
  height: 12.825em;
}

.hero-bottom-spacer {
  height: 4em;
}

.hero-inner {
  width: 100%;
  max-width: min(100vw, 1920px);
  margin: 0 auto;
  padding-left: 2.5em;
  padding-right: 2.5em;
}

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-heading {
  font-family: var(--font-display);
  font-size: 3.25em;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--color-ink);
  margin: 0;
  text-align: center;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(6px);
  animation: heroIn 0.8s var(--ease) 0.1s forwards;
  text-wrap: balance;
}

@keyframes heroIn {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-rolling {
  display: inline-block;
  overflow: hidden;
  height: 1.18em;
  vertical-align: bottom;
  position: relative;
}

.hero-rolling-sizer {
  visibility: hidden;
  display: inline-block;
  font-weight: 400;
}

.hero-rolling-word {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  position: absolute;
  inset: 0;
  color: var(--color-ink-muted);
  font-weight: 400;
  white-space: nowrap;
  transition: opacity 0.25s ease-in-out, filter 0.25s ease-in-out;
}

.hero-rolling-word.out {
  opacity: 0;
  filter: blur(8px);
}

.hero-subline {
  max-width: 36em;
  margin-top: 1.5em;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.125em;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: 0;
  color: var(--color-ink-soft);
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.7s var(--ease) 0.3s forwards;
  text-wrap: pretty;
}

.hero-cta-row {
  margin-top: 2em;
  display: flex;
  gap: 0.5em;
  align-items: stretch;
  opacity: 0;
  transform: translateY(20px);
  animation: heroIn 0.6s var(--ease) 0.45s forwards;
}

.hero-cta {
  font-family: var(--font-display);
  font-size: 1em;
  font-weight: 500;
  color: #ffffff;
  background: var(--color-ink);
  border: 1px solid var(--color-ink);
  border-radius: 0;
  padding: 1.16em 1.75em;
  cursor: pointer;
  height: 3.5em;
  line-height: 1.42857;
  transition:
    background 0.735s var(--ease-nav),
    border-color 0.735s var(--ease-nav),
    color 0.735s var(--ease-nav);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.005em;
}

.hero-cta:hover {
  background: #000;
  border-color: #000;
}

/* ========== RESPONSIVE ========== */

/* Tier 1: 1366–1536px laptops */
@media (min-width: 1025px) and (max-width: 1536px) {
  .hero-heading {
    font-size: 64px;
    line-height: 1.05;
  }
  .hero-spacer {
    height: 9em;
  }
  .hero-inner {
    padding-left: 2em;
    padding-right: 2em;
  }
}

/* Tier 2: 1025–1366px */
@media (min-width: 1025px) and (max-width: 1366px) {
  body {
    font-size: 16px;
  }
  .hero-heading {
    font-size: 56px;
  }
  .hero-spacer {
    height: 7.5em;
  }
  .hero-inner {
    padding-left: 1.5em;
    padding-right: 1.5em;
  }
}

/* Tier 3: very compact */
@media (min-width: 1025px) and (max-width: 1280px) {
  body {
    font-size: 15px;
  }
  .hero-heading {
    font-size: 50px;
  }
  .hero-spacer {
    height: 6.5em;
  }
}

/* Mobile: hide desktop nav, show toggle */
@media (max-width: 1024px) {
  .nav-links {
    display: none;
  }
  .nav-cta {
    display: none;
  }
  .nav-mobile-toggle {
    display: inline-flex;
  }
}

/* Phone tier */
@media (max-width: 768px) {
  body {
    font-size: 16px;
  }
  .hero-heading {
    font-size: 42px;
    line-height: 1.1;
  }
  .hero-spacer {
    height: 5.5em;
  }
  .hero-inner {
    padding-left: 1.25em;
    padding-right: 1.25em;
  }
  .nav-inner {
    padding: 0.75em 1.25em;
  }
  .nav-brand-text {
    font-size: 1.5rem;
  }
  .nav-brand-mark {
    width: 32px;
    height: 32px;
  }
  .hero-cta-row {
    width: 100%;
    flex-direction: column;
  }
  .hero-cta {
    width: 100%;
    padding: 1em 1.5em;
  }
}

@media (max-width: 480px) {
  .hero-heading {
    font-size: 34px;
  }
  .nav-inner {
    padding: 0.75em 1em;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-heading,
  .hero-subline,
  .hero-cta-row,
  .nav-brand-mark {
    animation: none;
    opacity: 1;
    transform: none;
    filter: none;
  }
  .hero-rolling-word {
    transition: none;
  }
}
