/* ═══════════════════════════════════════════
   KROX LANDING — styles.css
   Design: premium monochrome, minimal, dark hero
════════════════════════════════════════════ */

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --surface: #161616;
  --surface-2: #1e1e1e;
  --border: rgba(255,255,255,0.08);
  --border-soft: rgba(255,255,255,0.05);
  --text: #f0f0f0;
  --text-2: #a0a0a0;
  --text-3: #606060;
  --accent: #ffffff;
  --accent-glow: rgba(255,255,255,0.06);
  --accent-green: #4ade80;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

img, svg { display: block; }

/* ── Container ── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Section helpers ── */
.section { padding: 100px 0; }

.section__header {
  text-align: center;
  margin-bottom: 64px;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.02em;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
  text-decoration: none;
}

.btn--nav {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.85rem;
}
.btn--nav:hover {
  background: var(--surface);
  border-color: rgba(255,255,255,0.2);
  transform: translateY(-1px);
}

.btn--primary {
  background: #ffffff;
  color: #0a0a0a;
  font-weight: 700;
  padding: 14px 28px;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(255,255,255,0.12);
}
.btn--primary:hover {
  background: #e8e8e8;
  box-shadow: 0 8px 32px rgba(255,255,255,0.18);
  transform: translateY(-2px);
}
.btn--primary:active { transform: translateY(0); }

.btn--large {
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: var(--radius-lg);
}

/* ═══════════════════════════════════════════
   NAV
════════════════════════════════════════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
}

.logo-mark {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════
   HERO
════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  padding-top: 64px;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero__inner {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 64px;
  padding-top: 80px;
  padding-bottom: 80px;
}

.hero__text {
  flex: 1;
  min-width: 0;
}

.hero__badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 28px;
}

.hero__headline {
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 24px;
}

.hero__headline em {
  font-style: normal;
  color: var(--text-2);
}

.hero__sub {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.hero__soon {
  font-size: 0.85rem;
  color: var(--text-3);
  font-weight: 500;
}

.hero__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--text-3);
  animation: bounce 2.2s ease-in-out infinite;
  z-index: 1;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.4; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 0.8; }
}

/* ── Phone mockup ── */
.hero__phone {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.phone { perspective: 1200px; }

.phone__shell {
  width: 240px;
  height: 480px;
  background: #111;
  border-radius: 36px;
  padding: 12px 10px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.1),
    0 40px 80px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(255,255,255,0.05);
  transform: rotateY(-4deg) rotateX(2deg);
  transition: transform 0.6s ease;
}

.phone__shell:hover {
  transform: rotateY(0deg) rotateX(0deg);
}

.phone__notch {
  width: 72px;
  height: 6px;
  background: #222;
  border-radius: 10px;
  margin: 0 auto 10px;
}

.phone__screen {
  width: 100%;
  height: calc(100% - 20px);
  background: #0e0e0e;
  border-radius: 26px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Chat header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 10px 8px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.chat-header__back {
  color: var(--text-2);
  display: flex;
}

.chat-header__avatar {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #2a2a2a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: #ddd;
  flex-shrink: 0;
}

.online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  border: 1.5px solid #0e0e0e;
}

.chat-header__info { flex: 1; min-width: 0; }

.chat-header__name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #e0e0e0;
  line-height: 1.2;
}

.chat-header__status {
  font-size: 0.58rem;
  color: var(--accent-green);
  font-weight: 500;
}

/* Chat body / bubbles */
.chat-body {
  flex: 1;
  overflow: hidden;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bubble {
  max-width: 80%;
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 0.63rem;
  line-height: 1.4;
  color: #ddd;
}

.bubble p { margin: 0 0 2px; }

.bubble__time {
  display: block;
  font-size: 0.5rem;
  color: rgba(255,255,255,0.35);
  text-align: right;
  margin-top: 2px;
}

.bubble__time--read { color: rgba(255,255,255,0.55); }

.bubble--in {
  background: #1e1e1e;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
}

.bubble--out {
  background: #2a2a2a;
  border-bottom-right-radius: 4px;
  align-self: flex-end;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 6px 10px;
  background: #1e1e1e;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  width: 44px;
}

.typing-indicator span {
  width: 5px;
  height: 5px;
  background: rgba(255,255,255,0.35);
  border-radius: 50%;
  animation: typing 1.4s ease-in-out infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 80%, 100% { opacity: 0.3; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1); }
}

/* Chat input */
.chat-input {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.chat-input__field {
  flex: 1;
  background: #1a1a1a;
  border-radius: 12px;
  padding: 6px 10px;
  font-size: 0.6rem;
  color: rgba(255,255,255,0.25);
  font-family: var(--font);
}

.chat-input__send {
  width: 28px;
  height: 28px;
  background: #fff;
  color: #0a0a0a;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

/* ═══════════════════════════════════════════
   FEATURES GRID
════════════════════════════════════════════ */
.features {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2px;
}

.feat-card {
  background: var(--surface);
  padding: 36px 32px;
  transition: background var(--transition);
}

.feat-card:hover { background: var(--surface-2); }

.feat-card:first-child { border-radius: var(--radius) 0 0 0; }
.feat-card:nth-child(2) { border-radius: 0; }
.feat-card:nth-child(3) { border-radius: 0 var(--radius) 0 0; }
.feat-card:nth-child(4) { border-radius: 0 0 0 var(--radius); }
.feat-card:nth-child(5) { border-radius: 0; }
.feat-card:last-child { border-radius: 0 0 var(--radius) 0; }

.feat-card__icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
  color: var(--text);
  margin-bottom: 20px;
  flex-shrink: 0;
}

.feat-card__icon--soon { overflow: visible; }

.soon-tag {
  position: absolute;
  top: -8px;
  right: -28px;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0a0a0a;
  background: var(--text);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}

.feat-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 10px;
}

.feat-card__text {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   WHY KROX
════════════════════════════════════════════ */
.why { background: var(--bg); }

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.why__text .section__label,
.why__text .section__title { text-align: left; }

.why__text .section__title { margin-bottom: 20px; }

.why__desc {
  color: var(--text-2);
  font-size: 0.95rem;
  line-height: 1.7;
  max-width: 400px;
}

.why__props {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.why-prop {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.why-prop__icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
  margin-top: 2px;
}

.why-prop__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.why-prop__text {
  font-size: 0.85rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ═══════════════════════════════════════════
   HOW TO START
════════════════════════════════════════════ */
.steps {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.steps__track {
  display: flex;
  align-items: flex-start;
  gap: 0;
}

.step {
  flex: 1;
  padding: 40px 36px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  position: relative;
}

.step__connector {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--border), transparent);
  margin: 60px -1px;
  flex-shrink: 0;
  display: none;
}

.step__num {
  font-size: 3rem;
  font-weight: 800;
  color: rgba(255,255,255,0.06);
  line-height: 1;
  margin-bottom: 16px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.step__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}

.step__text {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

.steps__track {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2px;
}

.step:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.step:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.step:not(:first-child):not(:last-child) { border-radius: 0; }

/* ═══════════════════════════════════════════
   DOWNLOAD CTA BAND
════════════════════════════════════════════ */
.cta-band { background: var(--bg); }

.cta-band__inner {
  text-align: center;
  padding: 80px 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.cta-band__inner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.04) 0%, transparent 70%);
  pointer-events: none;
}

.cta-band__logo {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

.cta-band__title {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 12px;
}

.cta-band__sub {
  color: var(--text-2);
  font-size: 1rem;
  margin-bottom: 36px;
}

.cta-band__note {
  margin-top: 20px;
  font-size: 0.8rem;
  color: var(--text-3);
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

/* ═══════════════════════════════════════════
   FAQ
════════════════════════════════════════════ */
.faq { background: var(--bg-2); border-top: 1px solid var(--border); }

.faq__list {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__item:last-child { border-bottom: none; }

.faq__q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: var(--surface);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  transition: background var(--transition);
}

.faq__q:hover { background: var(--surface-2); }
.faq__q[aria-expanded="true"] { background: var(--surface-2); }

.faq__chevron {
  flex-shrink: 0;
  color: var(--text-3);
  transition: transform var(--transition);
}

.faq__q[aria-expanded="true"] .faq__chevron {
  transform: rotate(180deg);
}

.faq__a {
  padding: 0 28px 22px;
  background: var(--surface-2);
}

.faq__a p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.7;
}

.faq__a a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.2);
  text-underline-offset: 3px;
}
.faq__a a:hover { text-decoration-color: rgba(255,255,255,0.6); }

/* ═══════════════════════════════════════════
   FOOTER
════════════════════════════════════════════ */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer__tagline {
  font-size: 0.8rem;
  color: var(--text-3);
}

.footer__links { display: flex; gap: 24px; }

.footer__link {
  font-size: 0.85rem;
  color: var(--text-2);
  transition: color var(--transition);
}
.footer__link:hover { color: var(--text); }

.footer__copy {
  font-size: 0.8rem;
  color: var(--text-3);
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATIONS
════════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal--delay  { transition-delay: 0.15s; }
.reveal--delay-1 { transition-delay: 0.1s; }
.reveal--delay-2 { transition-delay: 0.2s; }

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ═══════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════ */

/* Tablet: 960px and below */
@media (max-width: 960px) {
  .hero__inner {
    flex-direction: column;
    text-align: center;
    gap: 48px;
    padding-top: 60px;
    padding-bottom: 60px;
  }

  .hero__sub { max-width: 100%; margin-left: auto; margin-right: auto; }

  .hero__actions { justify-content: center; }

  .hero__badge { display: block; width: fit-content; margin-left: auto; margin-right: auto; }

  .why__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .why__text .section__label,
  .why__text .section__title { text-align: center; }

  .why__desc { max-width: 100%; margin: 0 auto; text-align: center; }

  .features__grid {
    grid-template-columns: 1fr 1fr;
  }

  .feat-card:first-child { border-radius: var(--radius) 0 0 0; }
  .feat-card:nth-child(2) { border-radius: 0 var(--radius) 0 0; }
  .feat-card:nth-child(3) { border-radius: 0; }
  .feat-card:nth-child(4) { border-radius: 0; }
  .feat-card:nth-child(5) { border-radius: 0 0 0 var(--radius); }
  .feat-card:last-child { border-radius: 0 0 var(--radius) 0; }
}

/* Mobile: 640px and below */
@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .section__header { margin-bottom: 44px; }
  .container { padding: 0 20px; }

  .nav__inner { height: 56px; }

  .hero__phone { display: none; }

  .hero__scroll-hint { display: none; }

  .features__grid {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .feat-card { padding: 28px 24px; }

  .feat-card:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .feat-card:nth-child(2),
  .feat-card:nth-child(3),
  .feat-card:nth-child(4),
  .feat-card:nth-child(5) { border-radius: 0; }
  .feat-card:last-child { border-radius: 0 0 var(--radius) var(--radius); }

  .steps__track {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .step { padding: 28px 24px; }
  .step:first-child { border-radius: var(--radius) var(--radius) 0 0; }
  .step:last-child { border-radius: 0 0 var(--radius) var(--radius); }
  .step:not(:first-child):not(:last-child) { border-radius: 0; }

  .why-prop { flex-direction: column; gap: 12px; }

  .cta-band__inner { padding: 52px 24px; border-radius: var(--radius-lg); }

  .faq__q { padding: 18px 20px; font-size: 0.88rem; }
  .faq__a { padding: 0 20px 18px; }

  .btn--large { width: 100%; justify-content: center; }
}

/* ═══════════════════════════════════════════
   PREFERS REDUCED MOTION
════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .typing-indicator span { animation: none; opacity: 0.5; }
  .hero__scroll-hint { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
