/* ============================================================
   KANAKY TECH — SHARED DESIGN SYSTEM
   Extracted from the homepage so every page is one coherent site.
   Dark editorial aesthetic · Space Grotesk · accent #c8f060
   No emojis anywhere — inline SVG pictograms only.
   ============================================================ */

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

:root {
  --black: #050505;
  --white: #f0f0ec;
  --grey-1: #111;
  --grey-2: #1a1a1a;
  --grey-3: #666;
  --grey-4: #999;
  --accent: #c8f060;
  --accent-dim: rgba(200, 240, 96, 0.08);
  --border: rgba(255,255,255,0.06);
  --maxw: 1200px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Space Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }

/* ─── GRAIN ─── */
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1000;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px;
}

/* ─── CURSOR ─── */
.cursor-ring {
  position: fixed;
  width: 32px; height: 32px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.25s ease, height 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.cursor-ring.active {
  width: 56px; height: 56px;
  border-color: rgba(255,255,255,0.4);
  background: rgba(255,255,255,0.03);
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 24px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(5,5,5,0.6);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
}
.logo-mark { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.logo-img { height: 32px; width: auto; display: block; flex-shrink: 0; border-radius: 4px; mix-blend-mode: lighten; }
.logo-text { font-size: 14px; font-weight: 700; color: var(--white); letter-spacing: 0.08em; text-transform: uppercase; }
nav .nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
nav .nav-links a { color: var(--grey-3); text-decoration: none; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; transition: color 0.3s; }
nav .nav-links a:hover { color: var(--white); }
.nav-cta { color: var(--white) !important; padding: 8px 24px; border: 1px solid rgba(255,255,255,0.15); border-radius: 2px; font-weight: 600 !important; transition: all 0.3s ease !important; }
.nav-cta:hover { background: var(--white) !important; color: var(--black) !important; }

/* ─── BUTTONS ─── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--white); color: var(--black);
  text-decoration: none; padding: 14px 36px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all 0.3s ease; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--accent); box-shadow: 0 0 60px rgba(200, 240, 96, 0.15); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--border); color: var(--grey-3);
  text-decoration: none; padding: 14px 36px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: all 0.3s ease; cursor: pointer; background: none;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.3); color: var(--white); }

/* ─── LAYOUT PRIMITIVES ─── */
.wrap { max-width: var(--maxw); margin: 0 auto; }
.section { padding: 120px 48px; border-bottom: 1px solid var(--border); position: relative; z-index: 2; }
.section-label {
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-3);
  margin-bottom: 48px; display: flex; align-items: center; gap: 16px; max-width: var(--maxw); margin-left: auto; margin-right: auto;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.eyebrow { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; display: block; }

/* ─── PAGE HERO (inner pages) ─── */
.page-hero { padding: 180px 48px 80px; border-bottom: 1px solid var(--border); position: relative; z-index: 2; }
.page-hero .wrap { max-width: var(--maxw); }
.page-hero h1 {
  font-size: clamp(40px, 6.5vw, 92px); font-weight: 800; line-height: 0.95;
  letter-spacing: -0.04em; margin: 18px 0 28px; color: var(--white); max-width: 16ch;
}
.page-hero h1 .thin { font-weight: 300; color: var(--grey-4); }
.page-hero .lead { max-width: 620px; font-size: 18px; color: var(--grey-4); line-height: 1.7; margin-bottom: 40px; }
.page-hero .hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ─── BREADCRUMB ─── */
.breadcrumb { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-3); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.breadcrumb a { color: var(--grey-3); text-decoration: none; transition: color 0.3s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb span { color: rgba(255,255,255,0.2); }

/* ─── PROSE ─── */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; margin: 8px 0 24px; }
.prose h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin: 40px 0 14px; }
.prose p { font-size: 16px; color: var(--grey-4); line-height: 1.85; margin-bottom: 20px; }
.prose ul, .prose ol { margin: 0 0 24px 0; padding-left: 0; list-style: none; }
.prose ul li, .prose ol li { font-size: 15px; color: rgba(240,240,236,0.62); line-height: 1.7; padding-left: 28px; position: relative; margin-bottom: 12px; }
.prose ul li::before { content: ''; position: absolute; left: 0; top: 11px; width: 14px; height: 1px; background: var(--accent); }
.prose ol { counter-reset: li; }
.prose ol li { counter-increment: li; }
.prose ol li::before { content: counter(li, decimal-leading-zero); position: absolute; left: 0; top: 0; color: var(--accent); font-size: 12px; font-weight: 700; }
.prose strong { color: var(--white); font-weight: 600; }
.prose a { color: var(--white); text-decoration: none; border-bottom: 1px solid rgba(200,240,96,0.4); transition: border-color 0.3s; }
.prose a:hover { border-color: var(--accent); }

/* ─── GRID CARDS (services / features) ─── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); max-width: var(--maxw); margin: 0 auto; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); max-width: var(--maxw); margin: 0 auto; }
.card {
  background: var(--black); padding: 48px 40px; position: relative; transition: background 0.5s ease;
}
.card:hover { background: var(--grey-1); }
.card .card-icon { width: 26px; height: 26px; color: var(--accent); margin-bottom: 24px; display: block; }
.card .card-num { font-size: 40px; font-weight: 800; color: rgba(255,255,255,0.05); letter-spacing: -0.04em; margin-bottom: 14px; line-height: 1; }
.card h3 { font-size: 21px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 14px; line-height: 1.2; }
.card p { font-size: 14px; color: var(--grey-3); line-height: 1.75; margin-bottom: 0; }
.card ul { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 9px; }
.card ul li { font-size: 13px; color: rgba(240,240,236,0.5); display: flex; gap: 12px; align-items: center; }
.card ul li::before { content: ''; width: 14px; height: 1px; background: rgba(255,255,255,0.2); flex-shrink: 0; }

/* ─── PROCESS STEPS ─── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--border); max-width: var(--maxw); margin: 0 auto; }
.step { background: var(--black); padding: 40px 32px; }
.step .step-n { font-size: 12px; letter-spacing: 0.15em; color: var(--accent); margin-bottom: 20px; }
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em; }
.step p { font-size: 13px; color: var(--grey-3); line-height: 1.7; }

/* ─── STAT / TRUST BAR ─── */
.trust-bar { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 48px; display: grid; grid-template-columns: repeat(4, 1fr); position: relative; z-index: 2; max-width: var(--maxw); margin: 0 auto; }
.trust-item { padding: 0 32px; border-right: 1px solid var(--border); }
.trust-item:first-child { padding-left: 0; }
.trust-item:last-child { border-right: none; }
.trust-num { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px; }
.trust-label { font-size: 11px; color: var(--grey-3); letter-spacing: 0.1em; text-transform: uppercase; }

/* ─── FAQ ACCORDION ─── */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--white);
  font-family: inherit; font-size: 18px; font-weight: 600; letter-spacing: -0.01em;
  text-align: left; padding: 28px 48px 28px 0; cursor: pointer; position: relative; line-height: 1.4;
}
.faq-q::after {
  content: ''; position: absolute; right: 6px; top: 34px; width: 12px; height: 12px;
  background: no-repeat center/contain;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23c8f060' stroke-width='2'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  transition: transform 0.3s ease;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a-inner { padding: 0 0 28px; font-size: 15px; color: var(--grey-4); line-height: 1.8; max-width: 90%; }
.faq-a-inner p + p { margin-top: 14px; }

/* ─── CALLOUT / ANSWER BLOCK (GEO extractable) ─── */
.answer-block { border: 1px solid var(--border); border-left: 2px solid var(--accent); background: rgba(200,240,96,0.03); padding: 28px 32px; max-width: 820px; margin: 0 auto 32px; }
.answer-block .ab-q { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.answer-block p { font-size: 16px; color: var(--white); line-height: 1.75; margin: 0; }
.answer-block p + p { margin-top: 12px; }

/* ─── TABLE ─── */
.k-table { width: 100%; border-collapse: collapse; max-width: var(--maxw); margin: 0 auto; font-size: 14px; }
.k-table th, .k-table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.k-table th { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--grey-3); font-weight: 600; }
.k-table td { color: var(--grey-4); }
.k-table td strong { color: var(--white); }

/* ─── CASE STUDY BLOCK ─── */
.case { border: 1px solid var(--border); padding: 40px; margin-bottom: 1px; background: var(--black); }
.case-tag { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey-3); border: 1px solid var(--border); padding: 4px 10px; display: inline-block; margin-bottom: 20px; }
.case h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
.case .case-row { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 16px 0; border-top: 1px solid var(--border); }
.case .case-row .rk { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); padding-top: 2px; }
.case .case-row .rv { font-size: 14px; color: var(--grey-4); line-height: 1.7; }
.case .case-row .rv strong { color: var(--white); }

/* ─── CTA ─── */
.cta-section { padding: 140px 48px; text-align: center; position: relative; z-index: 2; }
.cta-section h2 { font-size: clamp(36px, 5.5vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-bottom: 24px; }
.cta-section p { font-size: 16px; color: var(--grey-3); margin-bottom: 40px; max-width: 540px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ─── CONTACT METHODS ─── */
.contact-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); max-width: var(--maxw); margin: 0 auto; }
.contact-card { background: var(--black); padding: 36px 32px; text-decoration: none; transition: background 0.4s; }
.contact-card:hover { background: var(--grey-1); }
.contact-card .cc-label { font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey-3); margin-bottom: 12px; }
.contact-card .cc-value { font-size: 17px; font-weight: 600; color: var(--white); }
.contact-card .cc-sub { font-size: 12px; color: var(--grey-3); margin-top: 6px; }

/* ─── FOOTER ─── */
footer { border-top: 1px solid var(--border); padding: 56px 48px 32px; position: relative; z-index: 2; }
.footer-top { max-width: var(--maxw); margin: 0 auto 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 13px; color: var(--grey-3); line-height: 1.7; max-width: 280px; margin-top: 16px; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--grey-4); margin-bottom: 18px; }
.footer-col a { display: block; font-size: 13px; color: var(--grey-3); text-decoration: none; margin-bottom: 11px; transition: color 0.3s; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); letter-spacing: 0.04em; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--border); color: var(--grey-3); text-decoration: none; transition: all 0.3s; }
.footer-social a:hover { border-color: rgba(255,255,255,0.25); color: var(--white); }

/* ─── REVEAL ─── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 0; transform: translateX(-20px); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; } .delay-2 { transition-delay: 0.2s; } .delay-3 { transition-delay: 0.3s; } .delay-4 { transition-delay: 0.4s; }

/* ─── MOBILE MENU ─── */
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.hamburger span { width: 22px; height: 1.5px; background: var(--white); transition: all 0.3s ease; display: block; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu { position: fixed; top: 0; left: 0; width: 100%; height: 100dvh; background: rgba(5,5,5,0.97); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); z-index: 99; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 0.45s cubic-bezier(0.16,1,0.3,1), visibility 0.45s; }
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu a { color: var(--white); text-decoration: none; font-size: 22px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.7; }
.mobile-menu a:hover { opacity: 1; color: var(--accent); }

::selection { background: rgba(255,255,255,0.15); color: var(--white); }

/* ─── MOBILE ─── */
@media (max-width: 768px) {
  .cursor-ring { display: none; }
  nav { padding: 16px 24px; }
  nav .nav-links { display: none; }
  .hamburger { display: flex; }
  .section { padding: 72px 24px; }
  .page-hero { padding: 130px 24px 56px; }
  .grid-2, .grid-3, .steps, .contact-grid { grid-template-columns: 1fr; }
  .trust-bar { grid-template-columns: 1fr 1fr; padding: 24px; }
  .trust-item { border-right: none; padding: 16px; border-bottom: 1px solid var(--border); }
  .case .case-row { grid-template-columns: 1fr; gap: 6px; }
  .cta-section { padding: 80px 24px; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .k-table { font-size: 13px; }
  .k-table th, .k-table td { padding: 12px 10px; }
  .faq-q { font-size: 16px; padding-right: 36px; }
}
