/* ===========================================================
   Kodulo Ltd — Stylesheet
   Modern dark theme with teal→blue accent
   =========================================================== */

:root {
  --bg:        #0b1120;
  --bg-alt:    #0e152a;
  --surface:   #131c33;
  --surface-2: #18223e;
  --border:    rgba(255, 255, 255, 0.08);
  --text:      #e8edf7;
  --muted:     #9aa7c2;
  --accent:    #34e7c5;
  --accent-2:  #4f7cff;
  --btn:       #1b3059;
  --btn-hover: #284a80;
  --grad:      linear-gradient(120deg, #34e7c5, #4f7cff);
  --radius:    16px;
  --radius-sm: 10px;
  --maxw:      1140px;
  --shadow:    0 20px 50px -20px rgba(0, 0, 0, 0.6);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, .brand-name { font-family: "Space Grotesk", "Inter", sans-serif; line-height: 1.15; }

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  font-weight: 600; font-size: 0.95rem;
  padding: 13px 24px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-block { width: 100%; }
.btn-primary {
  background: var(--btn); color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 28px -12px rgba(0, 0, 0, 0.7);
}
.btn-primary:hover { background: var(--btn-hover); transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(40, 74, 128, 0.6); }
.btn-ghost { border-color: var(--border); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--accent); transform: translateY(-2px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(11, 17, 32, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(11, 17, 32, 0.9); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 34px; width: auto; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav > a { color: var(--muted); font-weight: 500; font-size: 0.95rem; transition: color 0.18s ease; }
.nav > a:hover { color: var(--text); }
.nav .nav-cta { color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.25s ease, opacity 0.25s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 600px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(79,124,255,0.22), transparent 70%),
              radial-gradient(closest-side, rgba(52,231,197,0.18), transparent 70%);
  background-position: 30% 30%, 70% 40%;
  background-repeat: no-repeat;
  filter: blur(10px);
}
.hero-inner { position: relative; max-width: 820px; }
.eyebrow {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.3rem, 6vw, 4rem); font-weight: 700; letter-spacing: -0.03em; }
.hero-sub { color: var(--muted); font-size: 1.15rem; margin: 22px 0 0; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 44px; margin-top: 56px; }
.hero-stats strong { display: block; font-family: "Space Grotesk"; font-size: 2.1rem; }
.hero-stats span { color: var(--muted); font-size: 0.9rem; }

/* ===== Sections ===== */
.section { padding: 92px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 640px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: -0.02em; }
.section-lead { color: var(--muted); margin-top: 14px; }

/* ===== Grid / Cards ===== */
.grid { display: grid; gap: 22px; }
.services-grid { grid-template-columns: repeat(3, 1fr); }
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-alt));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px; transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.card:hover { transform: translateY(-6px); border-color: rgba(52,231,197,0.35); box-shadow: var(--shadow); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  background: rgba(52,231,197,0.1); color: var(--accent);
}
.card-icon svg { width: 26px; height: 26px; }
.card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }

/* ===== About ===== */
.about-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.about-text h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 14px 0 18px; letter-spacing: -0.02em; }
.about-text > p { color: var(--muted); }
.check-list { list-style: none; margin: 24px 0 30px; display: grid; gap: 12px; }
.check-list li { position: relative; padding-left: 32px; color: var(--text); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat content-box;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/13px no-repeat content-box;
}
.about-card { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mini-stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
}
.mini-stat strong { display: block; font-family: "Space Grotesk"; font-size: 1.7rem; color: var(--accent); }
.mini-stat span { color: var(--muted); font-size: 0.9rem; }

/* ===== Process ===== */
.process-grid { grid-template-columns: repeat(4, 1fr); }
.step { padding: 28px 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.step-no { font-family: "Space Grotesk"; font-size: 1.6rem; color: transparent; background: var(--grad); -webkit-background-clip: text; background-clip: text; font-weight: 700; }
.step h3 { margin: 12px 0 8px; font-size: 1.15rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ===== Contact ===== */
.contact-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.contact-info h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin: 14px 0 14px; letter-spacing: -0.02em; }
.contact-info > p { color: var(--muted); }
.contact-list { list-style: none; margin-top: 28px; display: grid; gap: 18px; }
.contact-list li { display: flex; align-items: center; gap: 14px; line-height: 1.45; }
.contact-list li span strong { color: var(--text); font-weight: 600; }
.ci-icon { display: inline-flex; width: 42px; height: 42px; border-radius: 12px; align-items: center; justify-content: center; background: rgba(79,124,255,0.12); color: var(--accent-2); flex-shrink: 0; }
.ci-icon svg { width: 20px; height: 20px; }
.contact-list a:hover { color: var(--accent); }

.contact-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px; display: grid; gap: 18px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--border); color: var(--text);
  font: inherit; font-size: 0.96rem; transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52,231,197,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: 0.92rem; min-height: 1.2em; text-align: center; }
.form-status.success { color: var(--accent); }
.form-status.error { color: #ff7a85; }

/* ===== Map ===== */
.map-wrap { margin-top: 48px; }
.map-embed {
  width: 100%; height: 380px; border: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  filter: grayscale(0.2) contrast(1.05);
  display: block;
}
@media (max-width: 540px) { .map-embed { height: 300px; } }

/* ===== Footer ===== */
.site-footer { border-top: 1px solid var(--border); padding-top: 56px; background: var(--bg-alt); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-bottom: 36px; }
.footer-logo { height: 30px; width: auto; }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 320px; font-size: 0.95rem; }
.footer-nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: var(--muted); transition: color 0.18s ease; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 22px 24px; text-align: center; color: var(--muted); font-size: 0.88rem; }

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .about-inner, .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-alt); border-bottom: 1px solid var(--border);
    padding: 12px 24px 24px; transform: translateY(-120%);
    transition: transform 0.3s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: translateY(0); }
  .nav > a { padding: 14px 0; border-bottom: 1px solid var(--border); }
  .nav .nav-cta { margin-top: 14px; text-align: center; }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 28px; }
  .hero-stats strong { font-size: 1.7rem; }
}

@media (max-width: 540px) {
  .services-grid, .process-grid, .about-card { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
