/* =====================================================
   ReedDesign LLC — Site Styles
   reeddesignllc.com
   ===================================================== */

/* ----- Reset & Tokens ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink:          #0a0f1e;
  --ink-2:        #111827;
  --card-dark:    #141d2f;
  --bd:           rgba(255,255,255,.08);
  --surface:      #f8fafc;
  --surface-2:    #f1f5f9;
  --border:       #e2e8f0;
  --text:         #0f172a;
  --muted:        #64748b;
  --body-dark:    #94a3b8;
  --white:        #ffffff;
  --accent:       #6366f1;
  --accent-2:     #8b5cf6;
  --accent-light: #eef2ff;
  --green:        #10b981;
  --gradient:     linear-gradient(135deg, #4f46e5, #7c3aed);
  --gradient-2:   linear-gradient(135deg, #6366f1, #a78bfa);
  --ff:           'Inter', system-ui, -apple-system, sans-serif;
  --radius:       .5rem;
  --radius-lg:    1rem;
  --radius-xl:    1.5rem;
  --shadow:       0 4px 24px rgba(0,0,0,.08);
  --shadow-lg:    0 8px 48px rgba(0,0,0,.14);
  --tr:           .2s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--ff); color: var(--text); background: var(--white); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--ff); }
address { font-style: normal; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
section, .section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

.overline {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}
.overline-light { color: #a5b4fc; }

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--text);
}
.section-title.light { color: var(--white); }

.section-lead { font-size: 1.05rem; color: var(--muted); max-width: 600px; margin-top: .75rem; line-height: 1.75; }
.section-lead.light { color: var(--body-dark); }

.text-center { text-align: center; }
.text-center .section-lead { margin: .75rem auto 0; }

.gradient-text {
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: var(--radius);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .01em;
  transition: all var(--tr);
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(99,102,241,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(99,102,241,.5); }

.btn-ghost {
  border-color: rgba(255,255,255,.2);
  color: var(--white);
  background: rgba(255,255,255,.06);
}
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); }

.btn-outline {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}
.btn-outline:hover { background: var(--accent-light); }

.btn-dark { background: var(--ink-2); color: var(--white); }
.btn-dark:hover { background: var(--ink); transform: translateY(-2px); }

.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: .5rem 1rem; font-size: .8rem; }

/* ----- Navigation ----- */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  transition: all .35s ease;
}
#nav.scrolled {
  background: rgba(10,15,30,.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: .875rem 0;
  border-bottom: 1px solid var(--bd);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--white);
  flex-shrink: 0;
}
.nav-logo span { background: var(--gradient-2); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .875rem; font-weight: 500; color: rgba(255,255,255,.7); transition: color var(--tr); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-cta { margin-left: .5rem; }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: .25rem; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s ease; }
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--ink);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding: 2rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 1.6rem; font-weight: 700; color: var(--white); letter-spacing: -.03em; }

/* ----- Hero ----- */
.hero {
  min-height: 100vh;
  background: var(--ink);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 8rem 0 5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(99,102,241,.2) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 15% 80%, rgba(139,92,246,.15) 0%, transparent 50%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(99,102,241,.12);
  border: 1px solid rgba(99,102,241,.28);
  color: #a5b4fc;
  padding: .375rem .875rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.cursor {
  display: inline-block;
  width: 3px;
  height: .85em;
  background: #a5b4fc;
  border-radius: 2px;
  vertical-align: baseline;
  margin-left: 2px;
  animation: blink .75s infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }

.hero-sub { font-size: 1.1rem; line-height: 1.8; color: var(--body-dark); max-width: 520px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 3rem; }
.hero-proof {
  display: flex;
  align-items: center;
  gap: .875rem;
}
.proof-avatars { display: flex; }
.proof-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--gradient);
  margin-right: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .6rem;
  font-weight: 700;
  color: var(--white);
}
.proof-avatar:nth-child(2) { background: linear-gradient(135deg, #0f766e, #0891b2); }
.proof-avatar:nth-child(3) { background: linear-gradient(135deg, #7c3aed, #db2777); }
.proof-avatar:nth-child(4) { background: linear-gradient(135deg, #b45309, #d97706); }
.proof-text { font-size: .82rem; color: var(--body-dark); padding-left: 12px; }
.proof-text strong { color: var(--white); }

/* Hero Dashboard Mockup */
.hero-visual { position: relative; }
.mockup-window {
  background: var(--card-dark);
  border: 1px solid var(--bd);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.04);
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform .5s ease;
}
.mockup-window:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }
.mockup-titlebar {
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid var(--bd);
  padding: .75rem 1rem;
  display: flex;
  align-items: center;
  gap: .45rem;
}
.m-dot { width: 10px; height: 10px; border-radius: 50%; }
.m-dot:nth-child(1) { background: #ff5f56; }
.m-dot:nth-child(2) { background: #ffbd2e; }
.m-dot:nth-child(3) { background: #27c93f; }
.m-url { flex: 1; background: rgba(255,255,255,.06); border-radius: 4px; height: 20px; margin: 0 .75rem; }
.mockup-body { padding: 1.5rem; }
.m-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; margin-bottom: 1rem; }
.m-stat {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  padding: .875rem;
}
.m-stat-lbl { font-size: .6rem; color: #64748b; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .3rem; }
.m-stat-val { font-size: 1.25rem; font-weight: 700; color: var(--white); }
.m-stat-up { font-size: .62rem; color: var(--green); margin-top: .1rem; }
.m-chart {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  height: 80px;
  margin-bottom: 1rem;
  padding: .75rem;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.m-bar { flex: 1; border-radius: 3px 3px 0 0; background: var(--gradient); opacity: .7; }
.m-rows { display: flex; flex-direction: column; gap: .5rem; }
.m-row {
  background: rgba(255,255,255,.03);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  padding: .5rem .75rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.m-row-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.m-row-bar { flex: 1; height: 6px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.m-row-fill { height: 100%; border-radius: 3px; background: var(--gradient); }
.m-row-val { font-size: .68rem; font-weight: 600; color: #758799; flex-shrink: 0; }

/* ----- Clients Bar ----- */
.clients-bar {
  background: var(--surface-2);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.clients-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 1.5rem; text-align: center; }
.clients-logos { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 2rem 3rem; }
.client-logo { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; color: #c0cfe0; transition: color var(--tr); white-space: nowrap; }
.client-logo:hover { color: var(--muted); }

/* ----- Services Grid ----- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { opacity: 1; }
.svc-icon {
  width: 50px;
  height: 50px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: all .3s;
}
.service-card:hover .svc-icon { background: var(--gradient); color: var(--white); }
.service-card h3 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .5rem; }
.service-card p { font-size: .875rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
.tag-row { display: flex; flex-wrap: wrap; gap: .375rem; }
.tag {
  background: var(--surface-2);
  color: var(--muted);
  font-size: .7rem;
  font-weight: 600;
  padding: .25rem .625rem;
  border-radius: 100px;
  border: 1px solid var(--border);
}

/* ----- Portfolio Preview (dark section) ----- */
.section-dark { background: var(--ink); }
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.portfolio-card {
  background: var(--card-dark);
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s ease;
}
.portfolio-card:hover { transform: translateY(-4px); border-color: rgba(99,102,241,.4); box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.pf-img {
  aspect-ratio: 16/9;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.pf-img-teal { background: linear-gradient(135deg, #0f766e, #0891b2); }
.pf-img-pink { background: linear-gradient(135deg, #7c3aed, #db2777); }
.pf-screen {
  width: 82%;
  background: rgba(0,0,0,.3);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 8px;
  padding: 1rem;
}
.pf-screen-bar { display: flex; gap: 4px; margin-bottom: .75rem; }
.pf-screen-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.3); }
.pf-line { height: 5px; border-radius: 3px; background: rgba(255,255,255,.15); margin-bottom: 6px; }
.pf-info { padding: 1.5rem; }
.pf-cat { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #a5b4fc; margin-bottom: .4rem; }
.portfolio-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: .4rem; letter-spacing: -.02em; }
.portfolio-card p { font-size: .875rem; color: #5a7194; line-height: 1.6; margin-bottom: 1.25rem; }
.pf-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; color: #a5b4fc; transition: gap .2s, color .2s; }
.pf-link:hover { gap: .7rem; color: var(--white); }

/* ----- Why Us ----- */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
  align-items: center;
  margin-top: 3rem;
}
.why-feature { display: flex; gap: 1rem; margin-bottom: 1.75rem; }
.why-feature:last-child { margin-bottom: 0; }
.why-icon {
  width: 42px;
  height: 42px;
  background: var(--accent-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: .15rem;
}
.why-feature h4 { font-size: 1rem; font-weight: 700; margin-bottom: .3rem; letter-spacing: -.01em; }
.why-feature p { font-size: .875rem; color: var(--muted); line-height: 1.65; }
.why-visual {
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--bd);
}
.code-block { font-family: 'Fira Code', 'Courier New', monospace; font-size: .78rem; line-height: 1.9; }
.cl { display: block; }
.c-cm { color: #475569; }
.c-kw { color: #c084fc; }
.c-fn { color: #60a5fa; }
.c-str { color: #86efac; }
.c-var { color: #fcd34d; }
.c-num { color: #fb923c; }
.c-wh { color: #e2e8f0; }

/* ----- Stats ----- */
.stats-section { background: var(--ink); position: relative; overflow: hidden; }
.stats-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 50%, rgba(99,102,241,.1) 0%, transparent 70%);
  pointer-events: none;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1.5rem;
  position: relative;
}
.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--bd);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.03);
  transition: border-color .3s;
}
.stat-item:hover { border-color: rgba(99,102,241,.4); }
.stat-num {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -.05em;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: .5rem;
}
.stat-label { font-size: .875rem; color: var(--body-dark); font-weight: 500; }

/* ----- Testimonials ----- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.testi-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all .3s;
}
.testi-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.testi-stars { display: flex; gap: .2rem; color: #f59e0b; margin-bottom: 1rem; font-size: .9rem; }
.testi-card blockquote { font-size: .92rem; line-height: 1.75; color: var(--text); font-style: italic; margin-bottom: 1.25rem; }
.testi-author { display: flex; align-items: center; gap: .875rem; }
.ta-avt {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.ta-avt-b { background: linear-gradient(135deg, #0f766e, #22d3ee); }
.ta-avt-c { background: linear-gradient(135deg, #7c3aed, #db2777); }
.ta-name { font-weight: 700; font-size: .88rem; letter-spacing: -.01em; }
.ta-role { font-size: .78rem; color: var(--muted); }

/* ----- CTA Banner ----- */
.cta-section {
  background: var(--ink);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 110%, rgba(99,102,241,.3) 0%, transparent 60%);
  pointer-events: none;
}
.cta-section h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -.04em;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
}
.cta-section p { font-size: 1.05rem; color: var(--body-dark); max-width: 560px; margin: 0 auto 2.5rem; position: relative; line-height: 1.75; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; position: relative; }

/* ----- Footer ----- */
#footer {
  background: var(--ink);
  border-top: 1px solid var(--bd);
  padding: 4rem 0 2rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-tagline { font-size: .875rem; color: #374151; line-height: 1.65; margin: .8rem 0 1.25rem; max-width: 240px; }
.footer-social { display: flex; gap: .625rem; }
.footer-social a {
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  border: 1px solid var(--bd);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  color: #475569;
  transition: all var(--tr);
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--white); }
.footer-col h5 { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: #374151; margin-bottom: 1.25rem; }
.footer-col ul li { margin-bottom: .625rem; }
.footer-col ul a { font-size: .875rem; color: #374151; transition: color var(--tr); }
.footer-col ul a:hover { color: var(--white); }
.footer-bar {
  border-top: 1px solid var(--bd);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-bar p { font-size: .8rem; color: #2d3e52; }
.footer-bar-links { display: flex; gap: 1.5rem; }
.footer-bar-links a { font-size: .8rem; color: #2d3e52; transition: color var(--tr); }
.footer-bar-links a:hover { color: var(--muted); }

/* ----- Page Hero (inner pages) ----- */
.page-hero {
  background: var(--ink);
  padding: 9rem 0 5rem;
  position: relative;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 70% at 80% 20%, rgba(99,102,241,.14) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 10% 90%, rgba(139,92,246,.1) 0%, transparent 50%);
  pointer-events: none;
}
.page-hero-bg .grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
}
.breadcrumb { display: flex; align-items: center; gap: .5rem; font-size: .8rem; color: #374151; margin-bottom: 1.5rem; position: relative; }
.breadcrumb a { color: #475569; transition: color .2s; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb i { font-size: .6rem; }
.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.04em;
  line-height: 1.15;
  margin-bottom: 1rem;
  position: relative;
}
.page-hero p { font-size: 1.05rem; color: var(--body-dark); max-width: 580px; line-height: 1.75; position: relative; }

/* ----- Services Detail Page ----- */
.svc-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.svc-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  transition: all .3s;
}
.svc-card:hover { border-color: rgba(99,102,241,.35); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.svc-num { font-size: .68rem; font-weight: 800; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; margin-bottom: .75rem; }
.svc-card h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .75rem; }
.svc-card > p { font-size: .9rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.25rem; }
.svc-list { display: flex; flex-direction: column; gap: .4rem; }
.svc-list li { font-size: .85rem; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.svc-list li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.process-step { text-align: center; padding: 2rem 1.5rem; background: var(--card-dark); border: 1px solid var(--bd); border-radius: var(--radius-lg); transition: border-color .3s; }
.process-step:hover { border-color: rgba(99,102,241,.4); }
.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 1rem;
}
.process-step h4 { font-size: .95rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; letter-spacing: -.01em; }
.process-step p { font-size: .83rem; color: #5a7194; line-height: 1.6; }

/* ----- Portfolio Page ----- */
.filter-bar { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.filter-btn {
  padding: .5rem 1.2rem;
  border-radius: 100px;
  font-size: .83rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  transition: all var(--tr);
  cursor: pointer;
}
.filter-btn:hover, .filter-btn.active { background: var(--accent); border-color: var(--accent); color: var(--white); }
.portfolio-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2rem;
}
.pf-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s;
}
.pf-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(99,102,241,.2); }
.pf-thumb {
  aspect-ratio: 16/10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: rgba(255,255,255,.5);
  position: relative;
}
.pf-t1 { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.pf-t2 { background: linear-gradient(135deg, #0f766e, #0891b2); }
.pf-t3 { background: linear-gradient(135deg, #b45309, #d97706); }
.pf-t4 { background: linear-gradient(135deg, #0369a1, #06b6d4); }
.pf-t5 { background: linear-gradient(135deg, #7c3aed, #db2777); }
.pf-t6 { background: linear-gradient(135deg, #065f46, #10b981); }
.pf-body { padding: 1.5rem; }
.pf-cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .4rem; }
.pf-card h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .4rem; }
.pf-card p { font-size: .875rem; color: var(--muted); line-height: 1.6; margin-bottom: 1rem; }
.pf-tags { display: flex; flex-wrap: wrap; gap: .35rem; }

/* ----- About Page ----- */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-top: 3rem;
}
.about-visual {
  background: var(--ink);
  border-radius: var(--radius-xl);
  border: 1px solid var(--bd);
  padding: 2.5rem;
}
.about-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.about-stat {
  background: rgba(255,255,255,.04);
  border: 1px solid var(--bd);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
}
.about-stat-num {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -.04em;
  background: var(--gradient-2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: .25rem;
}
.about-stat-lbl { font-size: .78rem; color: #5a7194; }
.lead { font-size: 1.05rem; color: var(--muted); line-height: 1.8; margin-bottom: 1.25rem; }
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.value-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: all .3s;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(99,102,241,.25); }
.value-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.value-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; letter-spacing: -.01em; }
.value-card p { font-size: .875rem; color: var(--muted); line-height: 1.65; }

/* ----- Contact Page ----- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 3rem;
  align-items: start;
  margin-top: 3rem;
}
.contact-info {
  background: var(--ink);
  border: 1px solid var(--bd);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.contact-info h3 { font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; letter-spacing: -.02em; }
.contact-info > p { font-size: .875rem; color: #375065; line-height: 1.6; margin-bottom: 2rem; }
.ci-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.ci-icon {
  width: 40px;
  height: 40px;
  background: rgba(99,102,241,.14);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: #a5b4fc;
  flex-shrink: 0;
}
.ci-lbl { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #3d5570; margin-bottom: .2rem; }
.ci-val { font-size: .875rem; color: var(--body-dark); }
.ci-val a { color: var(--body-dark); transition: color .2s; }
.ci-val a:hover { color: var(--white); }
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
}
.contact-form-wrap h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; margin-bottom: .375rem; }
.contact-form-wrap > p { font-size: .875rem; color: var(--muted); margin-bottom: 2rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: .82rem; font-weight: 600; color: var(--text); margin-bottom: .35rem; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: var(--ff);
  color: var(--text);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.1); }
.form-group input.error,
.form-group select.error,
.form-group textarea.error { border-color: #ef4444; }
.form-error { font-size: .78rem; color: #ef4444; margin-top: .25rem; display: none; }
.form-group textarea { resize: vertical; min-height: 130px; }
.form-group select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}
.form-submit { width: 100%; padding: .9rem; font-size: .95rem; justify-content: center; }
.form-success { display: none; text-align: center; padding: 2.5rem 1.5rem; }
.form-success i { font-size: 2.75rem; color: var(--green); margin-bottom: 1rem; display: block; }
.form-success h4 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.form-success p { font-size: .9rem; color: var(--muted); }

/* ----- Scroll Reveal ----- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].revealed { opacity: 1; transform: none; }
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="left"].revealed { transform: none; }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="right"].revealed { transform: none; }
[data-reveal="scale"] { transform: scale(.96); }
[data-reveal="scale"].revealed { transform: none; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .why-grid { grid-template-columns: 1fr; }
  .why-visual { display: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 7rem 0 4rem; }
  .hero h1 { font-size: 2.2rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .portfolio-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cta-actions .btn { width: 100%; justify-content: center; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .stat-num { font-size: 2.25rem; }
}

/* ----- Class name aliases (HTML ↔ CSS harmonisation) ----- */
.pf-thumb-1 { background: linear-gradient(135deg, #4f46e5, #7c3aed); }
.pf-thumb-2 { background: linear-gradient(135deg, #0f766e, #0891b2); }
.pf-thumb-3 { background: linear-gradient(135deg, #b45309, #d97706); }
.pf-thumb-4 { background: linear-gradient(135deg, #0369a1, #06b6d4); }
.pf-thumb-5 { background: linear-gradient(135deg, #7c3aed, #db2777); }
.pf-thumb-6 { background: linear-gradient(135deg, #065f46, #10b981); }

.contact-info-card { background: var(--ink); border: 1px solid var(--bd); border-radius: var(--radius-xl); padding: 2.5rem; }
.contact-info-card h3 { font-size: 1.25rem; font-weight: 700; color: var(--white); margin-bottom: .5rem; letter-spacing: -.02em; }
.contact-info-card > p { font-size: .875rem; color: #375065; line-height: 1.6; margin-bottom: 2rem; }

.contact-item { display: flex; gap: 1rem; margin-bottom: 1.5rem; align-items: flex-start; }
.ci-label { font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: #3d5570; margin-bottom: .2rem; }
.about-stat-label { font-size: .78rem; color: #5a7194; }
.portfolio-filter { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2.5rem; }

/* ----- About content column ----- */
.about-content { display: flex; flex-direction: column; justify-content: center; }
.about-content .btn + .btn { margin-left: .75rem; }
@media (max-width: 1024px) { .about-content .btn + .btn { margin-left: 0; } }

/* ----- Hero text column ----- */
.hero-text { display: flex; flex-direction: column; justify-content: center; }

/* ----- Footer brand column ----- */
.footer-brand { display: flex; flex-direction: column; }

/* ----- Accessibility ----- */
.show-for-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
