/* ==========================================================================
   Create A Dot — Design System
   Tokens pinned by brief: Ink #0F172A / Blue #2563EB / Cyan #22D3EE
   Typeface: Manrope (brief). Utility face: JetBrains Mono (data/eyebrows).
   Signature: The Dot Path — a single dot growing into an ascending line.
   ========================================================================== */

:root{
  --ink:#0F172A;
  --ink-2:#16213d;
  --blue:#2563EB;
  --blue-2:#1d4ed8;
  --cyan:#22D3EE;
  --bg:#FFFFFF;
  --text:#111827;
  --text-soft:#4b5568;
  --gray-light:#F8FAFC;
  --border:#E5E7EB;

  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --container: 1240px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.05), 0 1px 1px rgba(15,23,42,.04);
  --shadow-md: 0 8px 30px rgba(15,23,42,.08);
  --shadow-lg: 0 24px 60px rgba(15,23,42,.14);
  --ease: cubic-bezier(.16,.8,.24,1);
}

.brand-mark {
  stroke: var(--ink);  /* Dark color in light theme */
}

html.dark{
  --bg:#0B1220;
  --text:#E7EBF3;
  --text-soft:#9aa5b8;
  --gray-light:#0F172A;
  --border:#1f2b45;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3);
  --shadow-md: 0 8px 30px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,.5);
}

html.dark .brand-mark {
  stroke: #ffffff;  /* White in dark theme */
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  -webkit-font-smoothing:antialiased;
  transition:background .3s var(--ease), color .3s var(--ease);
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family:inherit; cursor:pointer; }
h1,h2,h3,h4{ margin:0; font-weight:800; letter-spacing:-0.02em; line-height:1.08; }
p{ margin:0; }

.container{ max-width:var(--container); margin:0 auto; padding:0 28px; }

@media (max-width:640px){ .container{ padding:0 20px; } }

/* ---------- Eyebrow / mono utility text ---------- */
.eyebrow{
  font-family:var(--mono);
  font-size:12.5px;
  font-weight:600;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--blue);
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.eyebrow::before{
  content:"";
  width:6px; height:6px; border-radius:50%;
  background:var(--cyan);
  box-shadow:0 0 0 3px rgba(34,211,238,.18);
}

.project-thumb {
  aspect-ratio: 4/3;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 20px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ink), var(--blue-2)); /* Fallback */
}

.project-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.project-thumb::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4); /* Dark overlay for contrast */
  z-index: 2;
  transition: background 0.3s var(--ease);
}

.project-card:hover .project-thumb::before {
  background: rgba(15, 23, 42, 0.6); /* Darker on hover */
}

.project-visit-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  text-decoration: none;
}

.project-visit-btn svg {
  width: 18px;
  height: 18px;
}

.project-card:hover .project-visit-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.project-thumb .tag {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border-color: transparent;
  position: relative;
  z-index: 4;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 26px;
  border-radius:999px;
  font-weight:700;
  font-size:15px;
  border:1px solid transparent;
  transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space:nowrap;
}
.btn-primary{
  background:var(--ink);
  color:#fff;
  box-shadow:var(--shadow-sm);
}
html.dark .btn-primary{ background:var(--blue); }
.btn-primary:hover{ transform:translateY(-2px); box-shadow:var(--shadow-md); background:var(--blue); }
.btn-outline{
  background:transparent;
  color:var(--text);
  border-color:var(--border);
}
.btn-outline:hover{ border-color:var(--blue); color:var(--blue); transform:translateY(-2px); }
.btn-cyan{
  background:var(--cyan); color:var(--ink);
}
.btn-cyan:hover{ transform:translateY(-2px); box-shadow:0 10px 30px rgba(34,211,238,.35); }
.btn-block{ width:100%; }
.btn-sm{ padding:10px 18px; font-size:14px; }

/* ---------- Navbar ---------- */
.navbar{
  position:sticky; top:0; z-index:100;
  backdrop-filter:saturate(180%) blur(14px);
  background:color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom:1px solid var(--border);
}
.nav-inner{
  display:flex; align-items:center; justify-content:space-between;
  height:76px;
}
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:19px; letter-spacing:-.01em; }
.brand-mark{ width:30px; height:30px; flex:none; }
.nav-links{ display:flex; align-items:center; gap:34px; }
.nav-links a{ font-size:14.5px; font-weight:600; color:var(--text-soft); transition:color .2s; position:relative; }
.nav-links a:hover, .nav-links a.active{ color:var(--text); }
.nav-links a.active::after{
  content:""; position:absolute; left:0; right:0; bottom:-22px; height:2px; background:var(--blue);
}
.nav-right{ display:flex; align-items:center; gap:14px; }
.theme-toggle{
  width:38px; height:38px; border-radius:50%;
  border:1px solid var(--border); background:transparent;
  display:flex; align-items:center; justify-content:center;
  color:var(--text-soft);
  transition:border-color .2s, color .2s;
}
.theme-toggle:hover{ border-color:var(--blue); color:var(--blue); }
.theme-toggle svg{ width:17px; height:17px; }
.icon-moon{ display:none; }
html.dark .icon-sun{ display:none; }
html.dark .icon-moon{ display:block; }

.nav-toggle{ display:none; background:none; border:none; width:38px; height:38px; align-items:center; justify-content:center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content:""; display:block; width:20px; height:2px; background:var(--text); position:relative; transition:.25s;
}
.nav-toggle span::before{ position:absolute; top:-6px; }
.nav-toggle span::after{ position:absolute; top:6px; }

@media (max-width:900px){
  .nav-links{
    position:fixed; inset:76px 0 auto 0; background:var(--bg);
    flex-direction:column; align-items:flex-start; padding:22px 28px 30px;
    gap:20px; border-bottom:1px solid var(--border);
    transform:translateY(-130%); transition:transform .35s var(--ease);
  }
  .nav-links.open{ transform:translateY(0); }
  .nav-links a.active::after{ display:none; }
  .nav-toggle{ display:flex; }
}

/* ---------- Sections ---------- */
section{ position:relative; }
.section{ padding:60px 0; }
.section-tight{ padding:80px 0; }
.section-alt{ background:var(--gray-light); }
@media (max-width:900px){ .section{ padding:76px 0; } .section-tight{ padding:56px 0; } }

.section-head{ max-width:680px; margin-bottom:56px; }
.section-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.section-head h2{ font-size:clamp(30px,4vw,44px); margin-top:14px; }
.section-head p{ margin-top:16px; font-size:17px; color:var(--text-soft); line-height:1.65; }

/* ---------- Hero ---------- */
.hero{ padding:20px 0 20px; overflow:hidden; }
.hero-grid{ display:grid; grid-template-columns:1.1fr .9fr; gap:60px; align-items:center; }
@media (max-width:980px){ .hero-grid{ grid-template-columns:1fr; } }
.hero h1{ font-size:clamp(24px,4.2vw,48px); }
.hero .lede{ margin-top:22px; font-size:16px; color:var(--text-soft); max-width:520px; line-height:1.7; }
.hero-cta{ margin-top:34px; display:flex; gap:14px; flex-wrap:wrap; }
.hero-note{ margin-top:22px; font-size:13.5px; color:var(--text-soft); font-family:var(--mono); }

.trust-strip{ padding:40px 0; border-top:1px solid var(--border); border-bottom:1px solid var(--border); }
.trust-inner{ display:flex; align-items:center; gap:36px; flex-wrap:wrap; justify-content:space-between; }
.trust-label{ font-family:var(--mono); font-size:12px; letter-spacing:.1em; text-transform:uppercase; color:var(--text-soft); flex:none; }
.trust-logos{ display:flex; gap:34px; flex-wrap:wrap; align-items:center; opacity:.7; }
.trust-logos span{ font-weight:800; font-size:16px; letter-spacing:-0.01em; color:var(--text-soft); }

/* ---------- Dot Path signature ---------- */
.dot-hero-canvas{ 
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.dot-hero-canvas img { 
  width: 100%;
  height: auto;
  display: block;
  max-width: 600px;
  border-radius: var(--radius-lg); 
}

.dotpath{ position:relative; padding-top:40px; }
.dotpath-line{ }
.dotpath-row{ display:grid; grid-template-columns:repeat(6,1fr); gap:20px; }
@media (max-width:980px){ .dotpath-row{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:560px){ .dotpath-row{ grid-template-columns:1fr; } }
.dotpath-step{ position:relative; padding-top:34px; }
.dotpath-dot{
  position:absolute; top:0; left:0;
  width:16px; height:16px; border-radius:50%;
  background:var(--bg); border:3px solid var(--blue);
  box-shadow:0 0 0 5px color-mix(in srgb, var(--blue) 12%, transparent);
}
.dotpath-step:last-child .dotpath-dot{ background:var(--cyan); border-color:var(--cyan); box-shadow:0 0 0 5px rgba(34,211,238,.18); }
.dotpath-step h3{ font-size:17px; margin-top:4px; }
.dotpath-step p{ margin-top:8px; font-size:14.5px; color:var(--text-soft); line-height:1.6; }
.dotpath-step .step-tag{ font-family:var(--mono); font-size:11.5px; color:var(--text-soft); letter-spacing:.06em; }

/* ---------- Cards ---------- */
.grid{ display:grid; gap:24px; }
.grid-2{ grid-template-columns:repeat(2,1fr); }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:980px){ .grid-3,.grid-4{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:640px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; } }

.card{
  background:var(--bg);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:30px;
  transition:transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:transparent; }
.card-icon{
  width:46px; height:46px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  background:color-mix(in srgb, var(--blue) 10%, transparent);
  color:var(--blue); margin-bottom:18px;
}
.card-icon svg{ width:22px; height:22px; }
.card h3{ font-size:19px; }
.card p{ margin-top:10px; font-size:14.5px; color:var(--text-soft); line-height:1.65; }
.card .tag-list{ margin-top:16px; display:flex; flex-wrap:wrap; gap:8px; }
.tag{
  font-family:var(--mono); font-size:11px; padding:5px 10px; border-radius:999px;
  background:var(--gray-light); color:var(--text-soft); border:1px solid var(--border);
}
.card-link{ margin-top:18px; display:inline-flex; align-items:center; gap:6px; font-size:14px; font-weight:700; color:var(--blue); }
.card-link svg{ width:14px; height:14px; transition:transform .2s; }
.card:hover .card-link svg{ transform:translateX(3px); }

/* ---------- Stats ---------- */
.stats-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:24px; }
@media (max-width:760px){ .stats-row{ grid-template-columns:repeat(2,1fr); } }
.stat{ text-align:left; }
.stat .num{ font-family:var(--mono); font-size:clamp(30px,4vw,48px); font-weight:700; color:var(--ink); letter-spacing:-.02em; }
html.dark .stat .num{ color:#fff; }
.stat .num span{ color:var(--blue); }
.stat .label{ margin-top:6px; font-size:14px; color:var(--text-soft); }

/* ---------- Testimonials ---------- */
.testi-card{
  background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:32px; display:flex; flex-direction:column; height:100%;
}
.testi-quote{ font-size:16.5px; line-height:1.7; color:var(--text); }
.testi-quote::before{ content:"\201C"; }
.testi-quote::after{ content:"\201D"; }
.testi-person{ margin-top:22px; display:flex; align-items:center; gap:12px; }
.testi-avatar{
  width:42px; height:42px; border-radius:50%; flex:none;
  background:linear-gradient(135deg,var(--blue),var(--cyan));
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:14px;
}
.testi-name{ font-weight:700; font-size:14.5px; }
.testi-role{ font-size:13px; color:var(--text-soft); }

/* ---------- FAQ ---------- */
.faq-item{ border-bottom:1px solid var(--border); }
.faq-q{
  width:100%; display:flex; align-items:center; justify-content:space-between; gap:16px;
  padding:22px 0; background:none; border:none; text-align:left;
  font-size:16.5px; font-weight:700; color:var(--text);
}
.faq-q svg{ width:18px; height:18px; flex:none; transition:transform .3s var(--ease); color:var(--blue); }
.faq-item.open .faq-q svg{ transform:rotate(45deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .35s var(--ease); }
.faq-a p{ padding-bottom:22px; color:var(--text-soft); font-size:15px; line-height:1.7; max-width:760px; }

/* ---------- CTA band ---------- */
.cta-band{
  background:var(--ink); border-radius:var(--radius-lg);
  padding:70px 56px; text-align:center; position:relative; overflow:hidden;
}
.cta-band h2{ color:#fff; font-size:clamp(28px,4vw,42px); }
.cta-band p{ color:#c7d0e0; margin-top:14px; font-size:16.5px; }
.cta-band .hero-cta{ justify-content:center; margin-top:30px; }
.cta-glow{
  position:absolute; width:420px; height:420px; border-radius:50%;
  background:radial-gradient(circle, rgba(34,211,238,.35), transparent 70%);
  filter:blur(20px); top:-160px; right:-120px; pointer-events:none;
}

/* ---------- Footer ---------- */
footer{ border-top:1px solid var(--border); padding:70px 0 34px; }
.footer-grid{ display:grid; grid-template-columns:1.6fr 1fr 1fr 1fr 1.2fr; gap:40px; }
@media (max-width:900px){ .footer-grid{ grid-template-columns:repeat(2,1fr); } }
@media (max-width:560px){ .footer-grid{ grid-template-columns:1fr; } }
.footer-brand p{ margin-top:14px; color:var(--text-soft); font-size:14.5px; line-height:1.7; max-width:280px; }
.footer-col h4{ font-size:13px; text-transform:uppercase; letter-spacing:.08em; color:var(--text-soft); font-weight:700; margin-bottom:16px; }
.footer-col a{ display:block; padding:6px 0; font-size:14.5px; color:var(--text); }
.footer-col a:hover{ color:var(--blue); }
.footer-social{ display:flex; gap:12px; margin-top:16px; }
.footer-social a{ width:36px; height:36px; border-radius:50%; border:1px solid var(--border); display:flex; align-items:center; justify-content:center; }
.footer-social svg{ width:16px; height:16px; }
.footer-bottom{
  margin-top:56px; padding-top:26px; border-top:1px solid var(--border);
  display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px;
  font-size:13.5px; color:var(--text-soft);
}
.footer-newsletter{ display:flex; gap:8px; margin-top:16px; }
.footer-newsletter input{
  flex:1; min-width:0; padding:10px 14px; border-radius:999px; border:1px solid var(--border);
  background:var(--bg); color:var(--text); font-size:13.5px; font-family:var(--font);
}
.footer-newsletter input:focus{ outline:2px solid var(--blue); outline-offset:1px; }

/* ---------- Scroll reveal ---------- */
.reveal{ opacity:0; transform:translateY(18px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in{ opacity:1; transform:translateY(0); }

/* ---------- Utility ---------- */
.mt-8{margin-top:8px;} .mt-16{margin-top:16px;} .mt-24{margin-top:24px;} .mt-32{margin-top:32px;} .mt-48{margin-top:48px;}
.text-center{ text-align:center; }
.flex{ display:flex; } .items-center{ align-items:center; } .gap-8{ gap:8px; } .gap-16{ gap:16px; }
.pill{
  display:inline-flex; align-items:center; gap:6px; padding:6px 14px; border-radius:999px;
  background:color-mix(in srgb, var(--cyan) 14%, transparent); color:var(--ink); font-size:12.5px; font-weight:700;
}
html.dark .pill{ color:#fff; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero{ padding:70px 0 40px; }
.page-hero h1{ font-size:clamp(32px,5vw,54px); }
.breadcrumb{ font-family:var(--mono); font-size:12.5px; color:var(--text-soft); margin-bottom:18px; }
.breadcrumb a{ color:var(--text-soft); } .breadcrumb a:hover{ color:var(--blue); }

/* ---------- Pricing ---------- */
.pricing-card{
  background:var(--bg); border:1px solid var(--border); border-radius:var(--radius-lg);
  padding:36px 30px; display:flex; flex-direction:column; position:relative;
}
.pricing-card.popular{ border-color:var(--blue); box-shadow:var(--shadow-lg); }
.pricing-badge{
  position:absolute; top:-14px; left:30px; background:var(--blue); color:#fff;
  font-size:11.5px; font-weight:700; padding:6px 14px; border-radius:999px; font-family:var(--mono);
}
.pricing-name{ font-size:20px; font-weight:800; }
.pricing-desc{ margin-top:8px; color:var(--text-soft); font-size:14px; }
.pricing-price{ margin-top:22px; font-family:var(--mono); font-size:38px; font-weight:700; }
.pricing-price span{ font-size:14px; color:var(--text-soft); font-weight:500; }
.pricing-features{ margin-top:26px; display:flex; flex-direction:column; gap:12px; flex:1; }
.pricing-features li{ display:flex; gap:10px; font-size:14.5px; align-items:flex-start; }
.pricing-features svg{ width:16px; height:16px; color:var(--blue); flex:none; margin-top:2px; }
.pricing-card .btn{ margin-top:28px; }

/* ---------- Contact ---------- */
.contact-grid{ display:grid; grid-template-columns:1fr 1.1fr; gap:50px; align-items:flex-start; }
@media (max-width:900px){ .contact-grid{ grid-template-columns:1fr; } }
.contact-item{ display:flex; gap:16px; padding:18px 0; border-bottom:1px solid var(--border); }
.contact-item:last-child{ border-bottom:none; }
.contact-item .card-icon{ margin-bottom:0; }
.contact-item h4{ font-size:15px; }
.contact-item p, .contact-item a{ font-size:14.5px; color:var(--text-soft); margin-top:4px; }
.form-card{ background:var(--gray-light); border:1px solid var(--border); border-radius:var(--radius-lg); padding:36px; }
.form-row{ display:grid; grid-template-columns:1fr 1fr; gap:16px; }
@media (max-width:560px){ .form-row{ grid-template-columns:1fr; } }
.field{ margin-bottom:18px; }
.field label{ font-size:13.5px; font-weight:700; display:block; margin-bottom:8px; }
.field input, .field select, .field textarea{
  width:100%; padding:13px 15px; border-radius:var(--radius-sm); border:1px solid var(--border);
  background:var(--bg); color:var(--text); font-family:var(--font); font-size:14.5px;
}
.field input:focus, .field select:focus, .field textarea:focus{ outline:2px solid var(--blue); outline-offset:1px; }
.map-placeholder{
  margin-top:26px; border-radius:var(--radius-lg); border:1px solid var(--border);
  height:220px; background:
    linear-gradient(var(--gray-light),var(--gray-light)),
    repeating-linear-gradient(0deg, transparent, transparent 23px, var(--border) 24px),
    repeating-linear-gradient(90deg, transparent, transparent 23px, var(--border) 24px);
  display:flex; align-items:center; justify-content:center; color:var(--text-soft); font-family:var(--mono); font-size:13px;
}

/* ---------- Projects ---------- */
.filter-row{ display:flex; gap:10px; flex-wrap:wrap; margin-bottom:36px; }
.filter-btn{
  padding:9px 18px; border-radius:999px; border:1px solid var(--border); background:transparent;
  font-size:13.5px; font-weight:700; color:var(--text-soft); transition:.2s;
}
.filter-btn.active, .filter-btn:hover{ background:var(--ink); color:#fff; border-color:var(--ink); }
.project-card{ border-radius:var(--radius-lg); overflow:hidden; border:1px solid var(--border); background:var(--bg); display:flex; flex-direction:column; }
.project-thumb{
  aspect-ratio:4/3; background:linear-gradient(135deg,var(--ink),var(--blue-2));
  position:relative; display:flex; align-items:flex-end; padding:20px;
}
.project-thumb .tag{ background:rgba(255,255,255,.15); color:#fff; border-color:transparent; }
.project-body{ padding:22px; display:flex; flex-direction:column; gap:10px; flex:1; }
.project-body h3{ font-size:17.5px; }
.project-body p{ margin:0; color:var(--text-soft); font-size:14px; line-height:1.7; }
.project-body .result-row{ margin-top:4px; gap:12px; padding:0; }
.project-body .result{ display:inline-flex; align-items:center; gap:6px; }

/* ---------- Values / process icons row for About ---------- */
.value-row{ display:flex; gap:16px; align-items:flex-start; padding:20px 0; border-bottom:1px solid var(--border); }
.value-row:last-child{ border-bottom:none; }
.value-num{ font-family:var(--mono); font-size:13px; color:var(--blue); font-weight:700; padding-top:2px; }

/* Skip link */
.skip-link{
  position:absolute; left:-999px; top:0; background:var(--ink); color:#fff; padding:10px 16px; z-index:200; border-radius:0 0 8px 0;
}
.skip-link:focus{ left:0; }

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}
