/*
 * KORDEAU — Main Stylesheet
 * ─────────────────────────────────────────────────────────────────────────────
 * Sections:
 *   Reset → Variables → Base → Layout → Nav → Hero → Buttons → Section Headers
 *   → Services → About → Terminal → Contact → Form → Footer
 *   → Scroll Animations → Responsive
 */

/* ── Reset ───────────────────────────────────────────────────────────────────*/
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html                   { scroll-behavior: smooth; }
img, svg               { display: block; max-width: 100%; }
button                 { cursor: pointer; border: none; background: none; font: inherit; }
a                      { text-decoration: none; color: inherit; }
ul                     { list-style: none; }

/* ── Variables ───────────────────────────────────────────────────────────────*/
:root {
  --bg:            #080b14;
  --bg-card:       #0d1117;
  --bg-card-2:     #111827;
  --accent:        #00d4ff;
  --accent-2:      #6366f1;
  --accent-glow:   rgba(0, 212, 255, 0.12);
  --accent-glow-2: rgba(99, 102, 241, 0.12);
  --text-1:        #f0f4ff;
  --text-2:        #8892a4;
  --text-3:        #3d4a5c;
  --border:        rgba(0, 212, 255, 0.1);
  --border-h:      rgba(0, 212, 255, 0.35);
  --radius:        14px;
  --radius-sm:     8px;
  --font-sans:     'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --nav-h:         70px;
  --section-py:    110px;
  --max-w:         1200px;
}

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

/* ── Layout ──────────────────────────────────────────────────────────────────*/
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
section { padding: var(--section-py) 0; }

/* ── Nav ─────────────────────────────────────────────────────────────────────*/
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.3s, border-bottom 0.3s;
}
.nav.scrolled {
  background: rgba(8, 11, 20, 0.9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav__logo {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.nav__logo-k {
  color: var(--accent);
  text-shadow: 0 0 22px rgba(0, 212, 255, 0.7);
}
.nav__links {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav__links a:hover { color: var(--text-1); }

.nav__right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav__lang {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-3);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.lang-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.08em;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.lang-btn:hover,
.lang-btn.active {
  color: var(--accent);
  background: var(--accent-glow);
}
.nav__mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px 4px;
}
.nav__mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-2);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 15% 60%, rgba(99, 102, 241, 0.13) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 35%, rgba(0, 212, 255, 0.08) 0%, transparent 55%),
    var(--bg);
}

/* Animated grid */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridScroll 30s linear infinite;
  pointer-events: none;
}

/* Scanning line */
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.5), transparent);
  animation: scanLine 12s ease-in-out infinite;
  pointer-events: none;
}

@keyframes gridScroll { to { background-position: 0 50px; } }
@keyframes scanLine {
  0%   { top: -2px;  opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-top: var(--nav-h);
  max-width: 840px;
}
.hero__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero__eyebrow::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--accent);
  flex-shrink: 0;
}
.hero__headline {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  margin-bottom: 26px;
}
.accent  { color: var(--accent); }
.accent-2 { color: var(--accent-2); }

.hero__cursor {
  display: inline-block;
  color: var(--accent);
  animation: cursorBlink 1s step-end infinite;
  margin-left: 4px;
}
@keyframes cursorBlink { 50% { opacity: 0; } }

.hero__sub {
  font-size: 1.1rem;
  color: var(--text-2);
  max-width: 620px;
  line-height: 1.75;
  margin-bottom: 40px;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero__stats {
  display: flex;
  align-items: center;
  gap: 36px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}
.hero__stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
  font-family: var(--font-mono);
  line-height: 1;
  text-shadow: 0 0 20px rgba(0, 212, 255, 0.4);
}
.hero__stat-label {
  display: block;
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 5px;
  letter-spacing: 0.04em;
}
.hero__stat-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────*/
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: #060912;
  box-shadow: 0 0 28px rgba(0, 212, 255, 0.28);
}
.btn-primary:hover {
  background: #22dbff;
  box-shadow: 0 0 50px rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}
.btn-outline {
  border: 1px solid var(--border-h);
  color: var(--text-1);
  background: transparent;
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
  transform: translateY(-2px);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ── Section Headers ─────────────────────────────────────────────────────────*/
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-header__title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  line-height: 1.15;
}
.section-header__sub {
  font-size: 1rem;
  color: var(--text-2);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Services ────────────────────────────────────────────────────────────────*/
.services { background: var(--bg); }
.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: transform 0.3s, border-color 0.3s, background 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}
.service-card:hover {
  border-color: var(--border-h);
  background: var(--bg-card-2);
  transform: translateY(-5px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--border-h);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
}
.service-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.service-card__desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.68;
}

/* ── About ───────────────────────────────────────────────────────────────────*/
.about {
  background: linear-gradient(180deg, var(--bg) 0%, #090c16 100%);
}
.about__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about__body {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 40px;
}
.about__values { display: flex; flex-direction: column; gap: 22px; }
.value-item    { display: flex; gap: 16px; align-items: flex-start; }
.value-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(0, 212, 255, 0.6);
  flex-shrink: 0;
  margin-top: 7px;
}
.value-item__label {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.value-item__desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}

/* ── Terminal ────────────────────────────────────────────────────────────────*/
.terminal {
  background: #0a0d16;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  font-family: var(--font-mono);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 60px rgba(0, 212, 255, 0.03);
}
.terminal__bar {
  background: #111520;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.terminal__dot          { width: 12px; height: 12px; border-radius: 50%; }
.terminal__dot--red     { background: #ff5f57; }
.terminal__dot--yellow  { background: #febc2e; }
.terminal__dot--green   { background: #28c840; }
.terminal__title {
  font-size: 0.72rem;
  color: var(--text-3);
  margin: 0 auto;
  transform: translateX(-16px); /* visually center */
}
.terminal__body   { padding: 24px; font-size: 0.8rem; line-height: 2; }
.terminal__line   { display: flex; gap: 10px; flex-wrap: wrap; }
.terminal__prompt { color: var(--accent); user-select: none; flex-shrink: 0; }
.terminal__cmd    { color: var(--text-1); }
.terminal__output { color: var(--text-2); padding-left: 20px; flex-basis: 100%; }
.terminal__output.success { color: #28c840; }
.terminal__cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: cursorBlink 1s step-end infinite;
}

/* ── Contact ─────────────────────────────────────────────────────────────────*/
.contact {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}
.contact::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 450px;
  background: radial-gradient(ellipse, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
  pointer-events: none;
}
.contact__inner {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact__info h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.contact__info > p {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 36px;
}
.contact__detail {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.contact__detail-icon {
  width: 36px;
  height: 36px;
  background: var(--accent-glow);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.reveal-btn {
  font-size: 0.875rem;
  color: var(--text-2);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  font-family: var(--font-sans);
  transition: color 0.2s;
  text-decoration: underline dashed rgba(138, 146, 164, 0.4);
  text-underline-offset: 3px;
}
.reveal-btn:hover  { color: var(--accent); }
.reveal-btn.revealed {
  cursor: default;
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

/* ── Form ────────────────────────────────────────────────────────────────────*/
.form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}
.form-group { margin-bottom: 22px; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-input,
.form-textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid rgba(0, 212, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  padding: 12px 16px;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-3); }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(0, 212, 255, 0.07);
}
.form-textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.6;
}

/* Honeypot — visually hidden but not display:none so bots still see it */
.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
  tabindex: -1;
}

.form-captcha { margin-bottom: 24px; }

.form-status {
  margin-top: 14px;
  font-size: 0.875rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: none;
  line-height: 1.5;
}
.form-status.success {
  display: block;
  background: rgba(40, 200, 64, 0.08);
  border: 1px solid rgba(40, 200, 64, 0.25);
  color: #46d660;
}
.form-status.error {
  display: block;
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.25);
  color: #ff7070;
}
.btn-submit { width: 100%; justify-content: center; }

/* ── Footer ──────────────────────────────────────────────────────────────────*/
.footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--text-3);
  font-family: var(--font-mono);
}
.footer__logo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-2);
}

/* ── Scroll Animations ───────────────────────────────────────────────────────*/
.fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible            { opacity: 1; transform: none; }
.fade-up:nth-child(2)       { transition-delay: 0.08s; }
.fade-up:nth-child(3)       { transition-delay: 0.16s; }
.fade-up:nth-child(4)       { transition-delay: 0.24s; }
.fade-up:nth-child(5)       { transition-delay: 0.32s; }
.fade-up:nth-child(6)       { transition-delay: 0.40s; }

/* ── Responsive ──────────────────────────────────────────────────────────────*/
@media (max-width: 1024px) {
  :root { --section-py: 90px; }
}

@media (max-width: 900px) {
  .about__inner   { grid-template-columns: 1fr; gap: 52px; }
  .contact__inner { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --section-py: 72px; }

  /* Collapse nav links into mobile menu */
  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(8, 11, 20, 0.97);
    backdrop-filter: blur(20px);
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
  }
  .nav__links.open        { display: flex; }
  .nav__mobile-toggle     { display: flex; }

  .hero__stats { gap: 20px; flex-wrap: wrap; }

  .services__grid         { grid-template-columns: 1fr; }
  .form-card              { padding: 28px 20px; }
}

@media (max-width: 480px) {
  .container              { padding: 0 16px; }
  .hero__ctas             { flex-direction: column; }
  .hero__ctas .btn        { width: 100%; justify-content: center; }
  .hero__stat-divider     { display: none; }
  .footer__inner          { flex-direction: column; text-align: center; }
}
