/* Kadiya Solutions — futuristic static landing. No build step. */
:root {
  --bg: #070b0a;
  --bg-raise: #0c1311;
  --panel: #0d1513;
  --line: #1f2e2a;
  --line-soft: #16211f;
  --text: #e9f0ee;
  --muted: #9db3ae;
  --accent: #00e5a0;
  --accent-dim: #0a3d2e;
  --signal: #ffb224;
  --danger: #ff6b6b;
  --font-display: "Chakra Petch", "Arial Narrow", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --max: 1120px;
  --chamfer: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: #04231a; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.08; margin: 0; letter-spacing: 0.01em; }
h1 { font-size: clamp(2.4rem, 5.4vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 600; }
h3 { font-size: 1.12rem; font-weight: 600; }
p { margin: 0 0 1rem; }
a { color: inherit; }

.skip {
  position: absolute; left: -999px; top: 0; background: var(--accent);
  color: #04231a; padding: 8px 14px; font-weight: 600; z-index: 50;
}
.skip:focus { left: 8px; top: 8px; }

.mono-label {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.14em;
  color: var(--accent); margin: 0 0 0.7rem; text-transform: uppercase;
  display: flex; align-items: center; gap: 0.6rem;
}
.tick { width: 22px; height: 2px; background: var(--accent); display: inline-block; }

/* Status bar */
.statusbar {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em;
  display: flex; align-items: center; gap: 0.7rem;
  padding: 7px 20px; border-bottom: 1px solid var(--line-soft);
  background: #05080a; color: var(--muted); text-transform: uppercase;
}
.statusbar-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.statusbar-sep { color: #33433f; }
.statusbar-right { margin-left: auto; text-transform: none; letter-spacing: 0.02em; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 14px 20px; background: rgba(7, 11, 10, 0.92);
  backdrop-filter: blur(6px); border-bottom: 1px solid var(--line-soft);
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.1em; }
.brand-name em { font-style: normal; color: var(--accent); }
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 0.8rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); padding: 9px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 3px 0; }

/* Buttons */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.93rem;
  padding: 12px 22px; border: none; cursor: pointer; font-family: var(--font-body);
  clip-path: var(--chamfer);
}
.btn-primary { background: var(--accent); color: #04231a; }
.btn-primary:hover { background: #4ff0b4; }
.text-link { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.text-link:hover { color: var(--accent); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
#gridCanvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; }
.hero::after {
  content: ""; position: absolute; top: 0; right: 12%; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--accent-dim) 40%, transparent);
  pointer-events: none;
}
.hero-inner {
  position: relative; max-width: var(--max); margin: 0 auto;
  padding: 72px 20px 64px; display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem; align-items: center;
}
.lede { color: var(--muted); font-size: 1.08rem; max-width: 34rem; margin: 1rem 0 1.6rem; }
.hero-actions { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 2.2rem; margin: 2.2rem 0 0; padding: 1.2rem 0 0; border-top: 1px solid var(--line); }
.hero-stats div { display: flex; flex-direction: column; gap: 2px; }
.hero-stats dt { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); order: 2; }
.hero-stats dd { margin: 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--text); order: 1; }

/* Terminal */
.hero-terminal {
  background: #05090c; border: 1px solid var(--line);
  box-shadow: 6px 6px 0 #0a1a15;
  font-family: var(--font-mono); font-size: 0.8rem; min-height: 320px;
}
.term-head { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); }
.term-dot { width: 9px; height: 9px; border-radius: 50%; background: #26332f; }
.term-dot:first-child { background: var(--signal); }
.term-title { color: var(--muted); margin-left: 6px; font-size: 0.72rem; }
.term-live { margin-left: auto; color: var(--accent); border: 1px solid var(--accent-dim); padding: 1px 8px; font-size: 0.66rem; letter-spacing: 0.14em; }
.term-body { margin: 0; padding: 16px; white-space: pre-wrap; min-height: 250px; color: #c4d4cf; }
.term-body .ok { color: var(--accent); }
.term-body .warn { color: var(--signal); }
.term-body .dim { color: #5d6f6a; }
.cursor { display: inline-block; width: 8px; height: 14px; background: var(--accent); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Strip */
.strip { border-bottom: 1px solid var(--line-soft); padding: 22px 20px; max-width: var(--max); margin: 0 auto; display: flex; gap: 2rem; align-items: center; }
.strip .mono-label { margin: 0; white-space: nowrap; }
.strip-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2rem; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.82rem; letter-spacing: 0.18em; color: #5d6f6a; }

/* Sections */
.section { max-width: var(--max); margin: 0 auto; padding: 72px 20px; }
.section-alt { max-width: none; background: var(--bg-raise); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-alt > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section-alt .section-head, .section-alt .timeline, .section-alt .company-grid { padding-left: 20px; padding-right: 20px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: end; margin-bottom: 2.6rem; }
.section-note { color: var(--muted); margin: 0; max-width: 26rem; justify-self: end; text-align: right; }

/* Service rows */
.service-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.service-rows li {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 1.6rem; align-items: start;
  padding: 26px 6px; border-bottom: 1px solid var(--line);
}
.service-rows li:hover { background: #0a100e; }
.row-num { font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; padding-top: 4px; }
.service-rows h3 { margin-bottom: 0.4rem; font-size: 1.25rem; }
.service-rows p { color: var(--muted); margin: 0; max-width: 36rem; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: flex-end; }
.tags li, .stack li {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em;
  border: 1px solid var(--line); color: var(--muted); padding: 4px 10px; background: transparent;
}

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); background: var(--bg); }
.timeline li { padding: 26px 22px; border-left: 1px solid var(--line); position: relative; }
.timeline li:first-child { border-left: none; }
.timeline li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
.timeline li:hover::before { transform: scaleX(1); }
.t-week { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; color: var(--signal); }
.timeline h3 { margin: 0.5rem 0; }
.timeline p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* Why */
.why-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
.metric-panel { border: 1px solid var(--line); background: var(--panel); }
.metric { padding: 24px; border-bottom: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 4px; }
.metric:last-child { border-bottom: none; }
.metric-val { font-family: var(--font-display); font-size: 2rem; font-weight: 700; color: var(--accent); }
.metric-key { color: var(--muted); font-size: 0.9rem; }
.checklist { list-style: none; margin: 0 0 1.8rem; padding: 0; }
.checklist li { padding: 12px 0 12px 30px; position: relative; border-bottom: 1px dashed var(--line); color: var(--muted); }
.checklist li::before { content: "▸"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.checklist strong { color: var(--text); }
.stack-label { margin-bottom: 0.8rem; }
.stack { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.quote { margin: 3rem 0 0; padding: 28px 30px; border: 1px solid var(--line); border-top: 2px solid var(--accent); background: var(--bg-raise); }
.quote blockquote { margin: 0 0 0.8rem; font-size: 1.12rem; font-weight: 500; }
.quote figcaption { font-family: var(--font-mono); font-size: 0.76rem; color: var(--muted); display: flex; align-items: center; gap: 0.6rem; }
.q-dot { width: 8px; height: 8px; background: var(--signal); display: inline-block; }
.q-sep { color: #33433f; }

/* Company */
.company-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; }
.company-grid p { color: var(--muted); }
.facts { margin: 0; border: 1px solid var(--line); background: var(--bg); align-self: start; }
.facts div { display: flex; justify-content: space-between; gap: 1rem; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); font-size: 0.92rem; }
.facts div:last-child { border-bottom: none; }
.facts dt { color: var(--muted); font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; }
.facts dd { margin: 0; font-weight: 600; text-align: right; }
.avail span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 6px; box-shadow: 0 0 8px var(--accent); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; align-items: start; }
.email-card {
  display: flex; flex-direction: column; gap: 0.5rem; text-decoration: none;
  border: 1px solid var(--line); background: var(--panel); padding: 26px; margin-bottom: 1.5rem;
}
.email-card:hover { border-color: var(--accent); }
.email-addr { font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; word-break: break-all; }
.email-card .text-link { align-self: flex-start; margin-top: 0.4rem; font-size: 0.85rem; }
.contact-facts { list-style: none; margin: 0; padding: 0; }
.contact-facts li { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.contact-facts strong { font-size: 0.8rem; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

.contact-form { border: 1px solid var(--line); background: var(--panel); padding: 28px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.contact-form input, .contact-form select, .contact-form textarea {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 11px 13px; font-family: var(--font-body); font-size: 0.95rem; font-weight: 400;
  border-radius: 0; width: 100%;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--accent);
}
.contact-form textarea { resize: vertical; }
.form-note { font-size: 0.8rem; color: var(--muted); }
.form-error { color: var(--danger); font-size: 0.87rem; font-weight: 600; }

/* Footer */
.footer { border-top: 1px solid var(--line-soft); background: #05080a; }
.footer-grid { max-width: var(--max); margin: 0 auto; padding: 36px 20px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 2rem; align-items: start; }
.footer-tag { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 0; }
.footer nav { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: 0.88rem; }
.footer nav a:hover { color: var(--text); }
.footer-meta { text-align: right; font-size: 0.85rem; color: var(--muted); }
.footer-meta a { color: var(--accent); text-decoration: none; }
.footer-meta p { margin: 0.4rem 0 0; }

/* Reveal (subtle, limited) */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
  .reveal.visible { opacity: 1; transform: none; }
}

/* Responsive */
@media (max-width: 900px) {
  .hero-inner, .why-grid, .company-grid, .contact-grid, .split { grid-template-columns: 1fr; }
  .section-note { justify-self: start; text-align: left; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline li:nth-child(3) { border-left: none; }
  .timeline li { border-top: 1px solid var(--line); }
  .timeline li:nth-child(-n+2) { border-top: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-meta { text-align: left; }
}
@media (max-width: 680px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); flex-direction: column; padding: 16px 20px; gap: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav-links.open { display: flex; }
  .nav { position: relative; }
  .nav-cta { margin-left: auto; }
  .nav-cta .btn { display: none; }
  .nav-toggle { display: block; }
  .nav { position: sticky; }
  .service-rows li { grid-template-columns: 1fr; gap: 0.6rem; }
  .tags { justify-content: flex-start; }
  .form-row { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .timeline li { border-left: none !important; border-top: 1px solid var(--line) !important; }
  .timeline li:first-child { border-top: none !important; }
  .hero-stats { gap: 1.4rem; flex-wrap: wrap; }
  .statusbar-right { display: none; }
  .strip { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
}

.form-success {
  color: var(--accent); font-size: 0.9rem; font-weight: 600;
  border: 1px solid var(--accent-dim); background: #08110e; padding: 10px 14px;
}

/* Admin */
.admin-main { max-width: 860px; margin: 0 auto; padding: 56px 20px 72px; }
.admin-main h1 { margin-bottom: 1.8rem; }
.login-card { border: 1px solid var(--line); background: var(--panel); padding: 28px; max-width: 440px; }
.login-card h2 { margin-bottom: 1.2rem; }
.login-card label { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; margin-bottom: 1rem; }
.login-card input {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 11px 13px; font-family: var(--font-body); font-size: 0.95rem; border-radius: 0; width: 100%;
}
.login-card input:focus { outline: none; border-color: var(--accent); }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.admin-toolbar .mono-label { margin: 0; }
.admin-actions { display: flex; gap: 0.6rem; }
.btn-ghost {
  background: transparent; border: 1px solid var(--line); color: var(--text);
  font-family: var(--font-body); font-size: 0.85rem; font-weight: 600;
  padding: 9px 16px; cursor: pointer;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.sub-list { display: flex; flex-direction: column; gap: 1rem; }
.sub-empty { color: var(--muted); }
.sub-card { border: 1px solid var(--line); background: var(--panel); padding: 20px 22px; }
.sub-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.sub-head strong { font-family: var(--font-display); font-size: 1.1rem; }
.sub-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--muted); }
.sub-meta { display: flex; gap: 1.2rem; flex-wrap: wrap; font-size: 0.86rem; color: var(--muted); margin: 0.5rem 0 0.8rem; }
.sub-meta a { color: var(--accent); text-decoration: none; }
.sub-budget { font-family: var(--font-mono); font-size: 0.74rem; border: 1px solid var(--line); padding: 1px 8px; }
.sub-msg { margin: 0; white-space: pre-wrap; }
