/* CSS Reset and Base */
*, *::before, *::after { box-sizing: border-box; }
html { 
  scroll-behavior: smooth;
  overflow-x: hidden;
}
html:focus-within { scroll-behavior: smooth; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Helvetica Neue, Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Animated orb 1 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse 800px 600px at 10% 20%, rgba(124,58,237,0.15) 0%, transparent 50%),
    radial-gradient(ellipse 600px 400px at 90% 10%, rgba(34,211,238,0.12) 0%, transparent 50%),
    radial-gradient(ellipse 700px 500px at 50% 100%, rgba(168,85,247,0.1) 0%, transparent 50%);
  background-attachment: fixed;
  animation: pulse-glow 8s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

/* Animated orb 2 */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(124,58,237,0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 50%, rgba(34,211,238,0.08) 0%, transparent 40%);
  animation: gradientShift 15s ease-in-out infinite;
  z-index: 0;
  pointer-events: none;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* CSS Variables */
:root {
  --brand-1: #7c3aed;
  --brand-2: #22d3ee;
  --brand-3: #a855f7;
  --bg: #0b1020;
  --surface: #0f162b;
  --surface-2: #121a33;
  --text: #e9eefb;
  --text-dim: #b8c1d9;
  --border: #22325d;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 10px 30px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.2);
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;
  --container: 100%;
  --g: 14px;
  --focus: 0 0 0 3px rgba(124,58,237,0.6), 0 0 0 6px rgba(34,211,238,0.3);
  --glass: rgba(255,255,255,0.04);
  --grad: radial-gradient(1200px 500px at 10% -10%, rgba(124,58,237,0.25) 0%, rgba(124,58,237,0) 40%), radial-gradient(900px 400px at 80% -10%, rgba(34,211,238,0.24) 0%, rgba(34,211,238,0) 40%);
  --portfolio-card-bg: rgba(12,19,39,0.88);
  --portfolio-card-subtle: rgba(255,255,255,0.05);
}

[data-theme="light"] {
  --bg: #f7f8ff;
  --surface: #ffffff;
  --surface-2: #f1f4ff;
  --text: #0b1020;
  --text-dim: #445175;
  --border: #e0e6ff;
  --shadow: 0 12px 32px rgba(124,58,237,0.12), 0 4px 12px rgba(34,211,238,0.08);
  --glass: rgba(124,58,237,0.06);
  --grad: radial-gradient(1200px 500px at 10% -10%, rgba(124,58,237,0.2) 0%, rgba(124,58,237,0.05) 40%), radial-gradient(900px 400px at 80% -10%, rgba(34,211,238,0.18) 0%, rgba(34,211,238,0.05) 40%);
  --portfolio-card-bg: #ffffff;
  --portfolio-card-subtle: #ffffff;
}

/* Animations */
@keyframes gradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes orb-float-1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(50px, -50px) scale(1.1);
  }
  50% {
    transform: translate(100px, 0) scale(1);
  }
  75% {
    transform: translate(50px, 50px) scale(0.95);
  }
}

@keyframes orb-float-2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(-60px, 40px) scale(0.95);
  }
  50% {
    transform: translate(-100px, 0) scale(1);
  }
  75% {
    transform: translate(-60px, -40px) scale(1.05);
  }
}

@keyframes orb-float-3 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  25% {
    transform: translate(30px, 70px) scale(1.05);
  }
  50% {
    transform: translate(0, 100px) scale(1);
  }
  75% {
    transform: translate(-30px, 70px) scale(0.95);
  }
}

@keyframes rotate-slow {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {
  0%, 100% {
    opacity: 0.6;
    filter: blur(40px);
  }
  50% {
    opacity: 0.9;
    filter: blur(60px);
  }
}

@keyframes shine {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

@keyframes text-glow {
  0%, 100% {
    text-shadow: 0 0 10px rgba(124,58,237,0.3), 0 0 20px rgba(34,211,238,0.1);
  }
  50% {
    text-shadow: 0 0 20px rgba(124,58,237,0.5), 0 0 40px rgba(34,211,238,0.2);
  }
}

@keyframes glow-expand {
  0%, 100% {
    box-shadow: 0 0 20px rgba(124,58,237,0.3), inset 0 0 20px rgba(124,58,237,0.1);
  }
  50% {
    box-shadow: 0 0 40px rgba(124,58,237,0.5), inset 0 0 30px rgba(124,58,237,0.2);
  }
}

@keyframes slide-in-up {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes button-glow {
  0%, 100% {
    box-shadow: 0 0 10px rgba(124,58,237,0.4), 0 0 20px rgba(34,211,238,0.2), 0 10px 25px rgba(0,0,0,0.25);
  }
  50% {
    box-shadow: 0 0 20px rgba(124,58,237,0.6), 0 0 30px rgba(34,211,238,0.4), 0 10px 35px rgba(0,0,0,0.3);
  }
}

/* Container */
.container { 
  width: 100%; 
  max-width: 100%; 
  margin-inline: auto; 
  padding-inline: clamp(16px, 5vw, 80px);
}

/* Utilities */
.muted { color: var(--text-dim); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(34,211,238,0.18));
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
}

[data-theme="light"] .chip {
  color: #fff;
  background: linear-gradient(135deg, rgba(124,58,237,0.85), rgba(34,211,238,0.75));
  border: 1px solid rgba(124,58,237,0.4);
  font-weight: 600;
}

/* Buttons */
.btn {
  --b1: var(--brand-1);
  --b2: var(--brand-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--b1), var(--b2));
  color: #fff;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease, background .3s ease, opacity .2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  animation: button-glow 2s ease-in-out infinite;
}

.btn:active {
  transform: translateY(0);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn.secondary {
  background: rgba(124, 58, 237, 0.08);
  color: var(--text);
  border: 1.5px solid rgba(124, 58, 237, 0.35);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.1);
  font-weight: 600;
}

.btn.secondary:hover {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.5);
  box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
  filter: brightness(1) !important;
}

.btn.ghost {
  background: var(--glass);
  border: 1px solid var(--border);
}

[data-theme="light"] .btn.ghost {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(34,211,238,0.12));
  border: 1px solid rgba(124,58,237,0.35);
  color: var(--brand-1);
  font-weight: 700;
}

[data-theme="light"] .btn.ghost:hover {
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(34,211,238,0.18));
  border-color: var(--brand-1);
  box-shadow: 0 8px 20px rgba(124,58,237,0.2);
}

.btn.sm {
  padding: 8px 12px;
  border-radius: 10px;
}

.btn.block {
  width: 100%;
}

/* Badges & Tags */
.badge {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .4px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}

[data-theme="light"] .badge {
  border: 1px solid rgba(124,58,237,0.25);
  background: rgba(124,58,237,0.12);
  color: var(--brand-1);
}

.tag {
  font-size: 12px;
  color: var(--text-dim);
  border: 1px dashed var(--border);
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--glass);
  font-weight: 500;
  white-space: nowrap;
}

[data-theme="light"] .tag {
  border: 1px dashed rgba(124,58,237,0.25);
  background: rgba(124,58,237,0.08);
  color: var(--text-dim);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(135deg, 
    rgba(124, 58, 237, 0.15) 0%, 
    rgba(168, 85, 247, 0.08) 25%, 
    rgba(34, 211, 238, 0.08) 75%, 
    rgba(124, 58, 237, 0.12) 100%);
  backdrop-filter: saturate(150%) blur(15px);
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, 
    rgba(124, 58, 237, 0.4) 0%, 
    rgba(34, 211, 238, 0.3) 50%, 
    rgba(124, 58, 237, 0.4) 100%) 1;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.15), 0 4px 12px rgba(34, 211, 238, 0.08);
}

[data-theme="light"] .site-header {
  background: linear-gradient(135deg, 
    rgba(124, 58, 237, 0.08) 0%, 
    rgba(168, 85, 247, 0.05) 25%, 
    rgba(34, 211, 238, 0.05) 75%, 
    rgba(124, 58, 237, 0.07) 100%);
  border-image: linear-gradient(90deg, 
    rgba(124, 58, 237, 0.2) 0%, 
    rgba(34, 211, 238, 0.15) 50%, 
    rgba(124, 58, 237, 0.2) 100%) 1;
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.1), 0 4px 12px rgba(34, 211, 238, 0.06);
}

nav.navbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  letter-spacing: .3px;
  font-size: 18px;
}

.brand .logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: conic-gradient(from 140deg, var(--brand-1), var(--brand-3), var(--brand-2), var(--brand-1));
  position: relative;
  box-shadow: var(--shadow);
}

.brand .logo::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 8px;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.6), rgba(255,255,255,0) 55%), linear-gradient(135deg, rgba(255,255,255,0.15), rgba(255,255,255,0));
  mix-blend-mode: screen;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.nav-links a,
.nav-links button.nav-drop {
  color: var(--text);
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  transition: background .2s ease, color .2s ease, border .2s ease, box-shadow .2s ease;
  position: relative;
}

.nav-links a:hover,
.nav-links button.nav-drop:hover {
  background: rgba(124, 58, 237, 0.1);
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 16px rgba(124, 58, 237, 0.2);
}

.nav-links a.active {
  background: rgba(124, 58, 237, 0.15);
  border-color: rgba(124, 58, 237, 0.4);
  color: var(--text);
  box-shadow: 0 0 12px rgba(124, 58, 237, 0.25);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.cmdk-toggle {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: var(--surface);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease;
  color: var(--text);
}

.theme-toggle:hover,
.cmdk-toggle:hover {
  transform: translateY(-1px);
  background: var(--surface-2);
}

.hamburger {
  display: none;
}

.hamburger button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  color: var(--text);
}

/* Mobile Menu */
.mobile-drawer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 60;
}

.mobile-panel {
  position: absolute;
  inset: 0 0 auto 0;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  border-radius: 0 0 20px 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  transform: translateY(-100%);
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 16px;
  max-height: 90vh;
  overflow-y: auto;
}

.mobile-drawer.open {
  display: block;
}

.mobile-drawer.open .mobile-panel {
  transform: translateY(0);
}

.mobile-links {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.mobile-links a,
.mobile-links .drop-head {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(124,58,237,0.15);
  background: linear-gradient(135deg, var(--surface-2), rgba(124,58,237,0.04));
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  transition: all .2s ease;
  cursor: pointer;
}

.mobile-links a:hover,
.mobile-links .drop-head:hover {
  border-color: rgba(124,58,237,0.3);
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(124,58,237,0.06));
  transform: translateX(4px);
}

.mobile-links a:active,
.mobile-links .drop-head:active {
  transform: translateX(0);
}

[data-theme="light"] .mobile-links a,
[data-theme="light"] .mobile-links .drop-head {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(124,58,237,0.04));
  border: 1px solid rgba(124,58,237,0.2);
}

[data-theme="light"] .mobile-links a:hover,
[data-theme="light"] .mobile-links .drop-head:hover {
  background: linear-gradient(135deg, rgba(124,58,237,0.15), rgba(124,58,237,0.1));
  border-color: var(--brand-1);
}

.mobile-drop {
  display: none;
  padding: 8px 0 0 0;
  margin-top: 4px;
  border-left: 2px solid rgba(124,58,237,0.2);
  padding-left: 16px;
}

.mobile-drop a {
  margin: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--text-dim);
  transition: all .2s ease;
  font-size: 14px;
}

.mobile-drop a:hover {
  color: var(--text);
  background: rgba(124,58,237,0.08);
}

.drop-head.active + .mobile-drop {
  display: block;
}

/* Hero Section */
.hero {
  position: relative;
  isolation: isolate;
  padding: 64px 0 24px;
  background: var(--grad);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -100px 0 auto 0;
  height: 400px;
  z-index: -1;
  background: radial-gradient(600px 240px at 20% 40%, rgba(124,58,237,0.25), rgba(124,58,237,0) 60%),
              radial-gradient(500px 240px at 80% 20%, rgba(34,211,238,0.22), rgba(34,211,238,0) 60%);
  filter: blur(20px);
  animation: floaty 10s ease-in-out infinite;
  opacity: .7;
}

.hero::after {
  inset: 20% -10% auto auto;
  height: 300px;
  width: 60%;
  background: radial-gradient(600px 240px at 60% 40%, rgba(168,85,247,0.2), rgba(168,85,247,0) 60%);
  animation-duration: 12s;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(12px); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.title {
  font-size: clamp(28px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 14px;
  background: linear-gradient(90deg, #fff, #d8f5ff 30%, #b9a1ff 60%, #fff);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: .3px;
  animation: gradientShift 8s ease infinite;
}

[data-theme="light"] .title {
  background: linear-gradient(135deg, #7c3aed, #22d3ee 60%, #a855f7);
  -webkit-background-clip: text;
  background-clip: text;
}

.subtitle {
  font-size: clamp(15px, 2.3vw, 18px);
  color: var(--text-dim);
  margin: 0 0 22px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.mini {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-top: 18px;
  color: var(--text-dim);
}

.mini svg {
  opacity: .8;
}

.hero-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.hero-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 12px 30px rgba(124,58,237,0.2);
}

[data-theme="light"] .hero-card {
  background: linear-gradient(180deg, rgba(124,58,237,0.06), rgba(34,211,238,0.04));
  border: 1px solid rgba(124,58,237,0.2);
}

[data-theme="light"] .hero-card:hover {
  border-color: var(--brand-1);
  box-shadow: 0 12px 32px rgba(124,58,237,0.16);
}

.hero-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--surface-2);
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.search {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 12px;
  background: var(--surface);
}

.search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  width: 100%;
  font-size: 14px;
}

/* Board & Cards */
.board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(124,58,237,0.08), rgba(34,211,238,0.06));
}

.col {
  display: grid;
  gap: 12px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 6px 22px rgba(0,0,0,0.18);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(124,58,237,0.6);
  box-shadow: 0 10px 28px rgba(124,58,237,0.25);
}

[data-theme="light"] .card {
  box-shadow: 0 6px 22px rgba(124,58,237,0.08), 0 2px 8px rgba(34,211,238,0.04);
}

[data-theme="light"] .card:hover {
  border-color: var(--brand-1);
  box-shadow: 0 12px 30px rgba(124,58,237,0.16), 0 4px 12px rgba(34,211,238,0.08);
}

.card h4 {
  font-size: 15px;
  margin: 0;
}

.card p {
  font-size: 13px;
  margin: 4px 0 0;
  line-height: 1.4;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 500;
}

[data-theme="light"] .pill {
  border: 1px solid rgba(124,58,237,0.2);
  background: rgba(124,58,237,0.1);
  color: var(--text-dim);
}

/* Logos */
.logo-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 16px;
  opacity: .9;
}

.logo-cell {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 12px;
  height: 56px;
  display: grid;
  place-items: center;
  color: var(--text-dim);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.logo-cell:hover {
  transform: translateY(-2px);
  border-color: rgba(124,58,237,0.3);
  background: var(--surface-2);
}

[data-theme="light"] .logo-cell {
  border: 1px dashed rgba(124,58,237,0.2);
}

[data-theme="light"] .logo-cell:hover {
  border-color: rgba(124,58,237,0.5);
  background: rgba(124,58,237,0.08);
}

/* Sections */
.section {
  padding: 70px 0;
  position: relative;
  z-index: 1;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.tab {
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.tab.active {
  color: var(--text);
  border-color: rgba(124,58,237,0.6);
  background: linear-gradient(180deg, rgba(124,58,237,0.12), rgba(124,58,237,0));
}

[data-theme="light"] .tab {
  border: 1px solid rgba(124,58,237,0.15);
}

[data-theme="light"] .tab.active {
  border-color: var(--brand-1);
  background: linear-gradient(180deg, rgba(124,58,237,0.15), rgba(124,58,237,0.08));
}

/* Services */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.module {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.module:hover {
  transform: translateY(-3px);
  border-color: rgba(34,211,238,0.6);
  box-shadow: 0 10px 24px rgba(34,211,238,0.2);
}

[data-theme="light"] .module {
  border: 1px solid rgba(34,211,238,0.2);
}

[data-theme="light"] .module:hover {
  border-color: var(--brand-2);
  box-shadow: 0 12px 28px rgba(34,211,238,0.15);
}

.module-head {
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px dashed var(--border);
  background: var(--surface-2);
}

.module-body {
  padding: 14px;
  display: grid;
  gap: 8px;
  flex: 1;
}

.module-foot {
  padding: 12px 14px;
  border-top: 1px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.progress {
  height: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress > span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  width: 50%;
}

/* KPI */
.kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
}

.kpi .item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.kpi .item:hover {
  transform: translateY(-3px);
  border-color: rgba(34,211,238,0.5);
  box-shadow: 0 10px 24px rgba(34,211,238,0.2);
}

[data-theme="light"] .kpi .item {
  border: 1px solid rgba(34,211,238,0.2);
  box-shadow: 0 8px 18px rgba(124,58,237,0.08), 0 2px 8px rgba(34,211,238,0.04);
}

[data-theme="light"] .kpi .item:hover {
  border-color: var(--brand-2);
  box-shadow: 0 12px 28px rgba(34,211,238,0.15);
}

.kpi .val {
  font-weight: 800;
  font-size: clamp(24px, 4vw, 36px);
  background: linear-gradient(135deg, #fff, #d7f9ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .kpi .val {
  background: linear-gradient(135deg, #0b1020, #7c3aed);
  -webkit-background-clip: text;
  background-clip: text;
}

.kpi .lbl {
  color: var(--text-dim);
  font-size: 13px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.feature {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.02));
  padding: 16px;
  display: grid;
  gap: 10px;
  position: relative;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.feature:hover {
  transform: translateY(-3px);
  border-color: rgba(124,58,237,0.5);
  box-shadow: 0 10px 24px rgba(124,58,237,0.25);
}

[data-theme="light"] .feature {
  border: 1px solid rgba(124,58,237,0.2);
  background: linear-gradient(180deg, rgba(124,58,237,0.06), rgba(34,211,238,0.04));
}

[data-theme="light"] .feature:hover {
  border-color: var(--brand-1);
  background: linear-gradient(180deg, rgba(124,58,237,0.12), rgba(34,211,238,0.1));
  box-shadow: 0 12px 28px rgba(124,58,237,0.18);
}

.feature .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124,58,237,0.2), rgba(34,211,238,0.2));
  border: 1px solid var(--border);
}

[data-theme="light"] .feature .icon {
  background: linear-gradient(135deg, rgba(124,58,237,0.25), rgba(34,211,238,0.2));
  border: 1px solid rgba(124,58,237,0.3);
}

/* Pricing */
.pricing-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.toggle {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.toggle button {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
}

.toggle button.active {
  background: linear-gradient(135deg, rgba(124,58,237,.25), rgba(34,211,238,.25));
  color: #fff;
  border-color: rgba(255,255,255,0.16);
}

[data-theme="light"] .toggle button.active {
  color: var(--brand-1);
  background: linear-gradient(135deg, rgba(124,58,237,.2), rgba(34,211,238,.15));
  border-color: rgba(124,58,237,0.3);
}

.plan {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  display: grid;
  gap: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
  transition: transform .3s cubic-bezier(0.34, 1.56, 0.64, 1), border-color .3s ease, box-shadow .3s ease, background .3s ease;
}

.plan:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand-1);
  box-shadow: 0 20px 50px rgba(124,58,237,0.35);
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(34,211,238,0.06));
}

[data-theme="light"] .plan {
  border: 1px solid rgba(124,58,237,0.15);
}

[data-theme="light"] .plan:hover {
  border-color: var(--brand-1);
  box-shadow: 0 20px 50px rgba(124,58,237,0.2);
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(34,211,238,0.1));
}

.plan.popular {
  border-color: rgba(124,58,237,0.6);
  background: linear-gradient(180deg, rgba(124,58,237,0.08), rgba(34,211,238,0.05));
}

[data-theme="light"] .plan.popular {
  border-color: var(--brand-1);
  background: linear-gradient(180deg, rgba(124,58,237,0.1), rgba(34,211,238,0.08));
}

.price {
  font-weight: 900;
  font-size: clamp(26px, 4vw, 38px);
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price small {
  color: var(--text-dim);
  font-weight: 600;
}

.plan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.plan li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

/* Testimonials */
.testimonials {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
  padding: 16px;
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .testimonials {
  border: 1px solid rgba(124,58,237,0.15);
  background: linear-gradient(180deg, rgba(124,58,237,0.04), rgba(34,211,238,0.02));
}

.testi-track {
  display: flex;
  gap: 16px;
  transition: transform .5s ease;
}

.testi {
  min-width: 100%;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 18px;
  align-items: center;
}

.testi-quote {
  font-size: clamp(18px, 3vw, 22px);
  font-weight: 700;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  font-weight: 700;
  font-size: 16px;
}

.dots {
  position: absolute;
  right: 16px;
  bottom: 12px;
  display: flex;
  gap: 6px;
}

.dots button {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  opacity: .6;
}

.dots button.active {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  opacity: 1;
}

/* FAQ */
.accordion {
  display: grid;
  gap: 12px;
}

.acc {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.acc:hover {
  transform: translateY(-2px);
  border-color: rgba(124,58,237,0.4);
  box-shadow: 0 8px 20px rgba(124,58,237,0.15);
}

[data-theme="light"] .acc {
  border: 1px solid rgba(124,58,237,0.15);
}

[data-theme="light"] .acc:hover {
  border-color: var(--brand-1);
  box-shadow: 0 8px 20px rgba(124,58,237,0.12);
}

.acc summary {
  list-style: none;
  padding: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.acc summary::-webkit-details-marker {
  display: none;
}

.acc p {
  padding: 0 14px 14px;
  margin: 0;
  color: var(--text-dim);
}

/* AI FAQ Input */
#faq-ai-prompt {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 16px;
  margin-bottom: 12px;
}

#faq-ai-prompt:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

/* Contact / CTA */
.cta-card {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

#form-success {
  display: none;
  padding: 12px;
  border-radius: 10px;
  background: var(--ok);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 10px;
  font-weight: 500;
  text-align: center;
}

/* AI Features */
.ai-analysis-box {
  display: none;
  background: var(--surface-2);
  border: 1px dashed var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0;
  font-size: 14px;
}

.ai-analysis-box h4 {
  margin: 0 0 8px 0;
  color: var(--text);
  font-size: 15px;
}

.ai-analysis-box p {
  margin: 0 0 8px 0;
  color: var(--text-dim);
}

.ai-analysis-box ul {
  margin: 0;
  padding-left: 18px;
  color: var(--text-dim);
  display: grid;
  gap: 4px;
}

.ai-loading-box {
  display: none;
  text-align: center;
  color: var(--text-dim);
  padding: 12px;
  font-style: italic;
}

/* Sections with animated backgrounds */
section {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Main Content */
main {
  position: relative;
  z-index: 1;
}

/* Footer */
footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  position: relative;
  z-index: 1;
}

footer .container {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 80px);
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.2fr 1.2fr;
  gap: 48px;
  padding: 48px 0;
  width: 100%;
}

footer > .container:last-of-type {
  width: 100%;
  max-width: 1400px;
  margin-inline: auto;
  padding-inline: clamp(16px, 5vw, 80px) !important;
}

.foot-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.foot-col strong {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text);
}

.foot-col a {
  color: var(--text-dim);
  font-size: 14px;
}

.foot-col a:hover {
  color: var(--text);
  transition: color 0.3s ease;
}

/* First footer column (brand) */
.foot-grid > div:first-child {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.foot-grid > div:first-child .brand {
  font-size: 18px;
  font-weight: 800;
}

.foot-grid > div:first-child .brand .logo {
  width: 36px;
  height: 36px;
}

.newsletter {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  max-width: 300px;
}

.newsletter input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text);
  outline: none;
  font-size: 14px;
}

.newsletter input::placeholder {
  color: var(--text-dim);
}

/* Command Palette */
.cmdk {
  position: fixed;
  inset: 0;
  display: none;
  place-items: center;
  background: rgba(0,0,0,.5);
  z-index: 70;
}

.cmdk.open {
  display: grid;
}

.cmdk-panel {
  width: min(90vw, 720px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.cmdk-head {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
}

.cmdk-head input {
  flex: 1;
  border: none;
  outline: none;
  background: var(--surface-2);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
}

.cmdk-list {
  max-height: 50vh;
  overflow: auto;
}

.cmdk-item {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cmdk-item:hover {
  background: var(--surface-2);
}

/* Scroll to Top & Progress */
.scroll-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.scroll-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.progressbar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 55;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
  box-shadow: 0 0 12px rgba(124,58,237,0.6);
}

/* Cookie Banner */
.cookie {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow);
}

.cookie.hide {
  display: none;
}

/* Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
  animation: slide-in-up 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Responsive Breakpoints */
@media (max-width: 1200px) {
  .container {
    padding-inline: 20px;
  }
}

@media (max-width: 1024px) {
  .nav-actions .btn.sm {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .hero-card {
    max-width: 600px;
    margin: 0 auto;
  }
  .nav-links {
    display: none;
  }
  .hamburger {
    display: block;
  }
  .section {
    padding: 50px 0;
  }
  .section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .testi {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .cta-card {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 48px 0 20px;
  }
  .cta-row {
    flex-direction: column;
  }
  .cta-row .btn {
    width: 100%;
  }
  .mini {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .toolbar-actions {
    flex-wrap: wrap;
  }
  .search {
    width: 100%;
  }
  nav.navbar {
    gap: 8px;
    padding: 12px 0;
  }
  .brand {
    font-size: 16px;
  }
  .brand .logo {
    width: 30px;
    height: 30px;
  }
  .title {
    margin-bottom: 12px;
  }
  .subtitle {
    margin-bottom: 18px;
  }
  .section {
    padding: 40px 0;
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    padding: 32px 0;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 36px;
  }
  .cookie {
    flex-direction: column;
    text-align: center;
  }
  .hero-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .toolbar-actions {
    justify-content: space-between;
  }
  .board {
    padding: 10px;
    gap: 10px;
  }
  .card {
    padding: 10px;
  }
  .card h4 {
    font-size: 14px;
  }
  .card p {
    font-size: 12px;
  }
  .pill {
    padding: 5px 7px;
    font-size: 11px;
    gap: 6px;
  }
  .search input {
    font-size: 13px;
  }
  .hero-toolbar {
    padding: 8px 10px;
  }
  .cmdk-panel {
    width: 95vw;
  }
  .accordion {
    gap: 10px;
  }
  .acc summary {
    padding: 12px;
    font-size: 15px;
  }
  .newsletter {
    flex-direction: column;
  }
  .newsletter .btn {
    width: 100%;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 24px 0;
  }
  .section {
    padding: 32px 0;
  }
  .eyebrow {
    flex-wrap: wrap;
  }
  .tabs {
    width: 100%;
  }
  .tab {
    flex: 1;
    text-align: center;
    padding: 8px;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }
  .hero {
    padding: 28px 0 16px;
  }
  .title {
    font-size: 24px;
  }
  .subtitle {
    font-size: 15px;
  }
  .nav-actions {
    gap: 40px;
  }
  .theme-toggle,
  .cmdk-toggle {
    width: 34px;
    height: 34px;
  }
  .section {
    padding: 28px 0;
  }
  .module-head,
  .module-body,
  .module-foot {
    padding: 12px;
  }
  .feature {
    padding: 14px;
  }
  .plan {
    padding: 14px;
  }
  .card {
    padding: 10px;
  }
  .card h4 {
    font-size: 13px;
  }
  .card p {
    font-size: 11px;
  }
  .kpi .item {
    padding: 14px;
  }
  .btn {
    padding: 10px 14px;
    font-size: 14px;
  }
  .badge {
    font-size: 11px;
    padding: 3px 8px;
  }
  .chip {
    padding: 5px 8px;
    font-size: 12px;
  }
  .board {
    padding: 8px;
    gap: 8px;
    grid-template-columns: 1fr;
  }
  .pill {
    padding: 4px 6px;
    font-size: 10px;
  }
  .search {
    padding: 6px 8px;
  }
  .search input {
    font-size: 12px;
  }
  .hero-toolbar {
    padding: 8px;
    gap: 8px;
  }
  .toolbar-actions button {
    padding: 6px;
    font-size: 11px;
  }
  .avatar {
    width: 48px;
    height: 48px;
    font-size: 14px;
  }
  .tag {
    font-size: 10px;
    padding: 3px 6px;
  }
}

/* Focus Styles */
:focus-visible {
  outline: none;
  box-shadow: var(--focus);
  border-radius: 8px;
}

/* ---------------------------------
   Portfolio Profile Pages
---------------------------------- */
.hero-profile,
.hero-cloud,
.hero-success,
.hero-brand,
.hero-strategy {
  padding: clamp(80px, 12vw, 140px) 0;
  position: relative;
  z-index: 1;
}

.profile-grid,
.cloud-grid,
.success-grid,
.brand-grid,
.strategy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.profile-image-wrapper,
.success-media,
.brand-media,
.diagram {
  position: relative;
}

.profile-image-wrapper,
.success-media,
.brand-media,
.diagram {
  max-width: 460px;
  margin-inline: auto;
}

.profile-image-main {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-2);
  box-shadow: 0 24px 60px rgba(11, 16, 32, 0.45);
}

.profile-image-main img,
.success-media img,
.brand-media img,
.diagram img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 28px;
}

.profile-badge,
.brand-badge,
.rating-card {
  position: absolute;
  bottom: -28px;
  left: 24px;
  padding: 16px 22px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.92), rgba(34, 211, 238, 0.85));
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 44px rgba(12, 19, 39, 0.55);
  text-align: left;
}

.profile-badge h3,
.rating-card .rating-score {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
}

.profile-badge p,
.rating-card .rating-label {
  margin: 6px 0 0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.brand-badge {
  right: 24px;
  left: auto;
  font-size: 14px;
  font-weight: 700;
}

.rating-card {
  left: auto;
  right: 24px;
  max-width: 240px;
  background: var(--surface);
  color: var(--text);
}

.profile-content,
.cloud-stats,
.success-content,
.brand-content,
.data-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-tagline,
.cloud-subtitle,
.success-content p,
.brand-content p {
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.75;
  color: var(--text-dim);
  margin: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.social-link:hover {
  transform: translateY(-2px);
  border-color: rgba(124, 58, 237, 0.6);
  box-shadow: 0 14px 30px rgba(124, 58, 237, 0.22);
}

.profile-stats,
.metrics-band,
.stat-cluster {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 12px;
}

.stat-item,
.metric-tile,
.stat-panel {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--portfolio-card-subtle);
  box-shadow: 0 16px 36px rgba(11, 16, 32, 0.35);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-number,
.metric-tile strong,
.stat-panel .stat-number {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--brand-2);
}

.stat-label,
.metric-tile span,
.stat-panel .stat-label {
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stack-grid,
.expertise-grid,
.architecture-grid,
.case-grid,
.framework-grid,
.impact-grid,
.voices-grid,
.care-grid,
.narrative-grid,
.journey-grid,
.playbook-grid,
.project-grid,
.showcase-grid,
.spotlight-grid {
  display: grid;
  gap: clamp(20px, 4vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.expertise-card,
.architecture-card,
.case-card,
.framework-card,
.impact-card,
.voice-card,
.care-card,
.narrative-card,
.journey-step,
.playbook-card,
.project-card,
.showcase-item {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--portfolio-card-bg);
  padding: clamp(20px, 4vw, 26px);
  box-shadow: 0 18px 42px rgba(11, 16, 32, 0.4);
}

.expertise-icon,
.success-pills,
.focus-tags {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.expertise-icon,
.stack-card svg {
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.16);
  border: 1px solid rgba(124, 58, 237, 0.35);
}

.success-pills {
  margin: 12px 0;
}

.success-pill,
.focus-tags span,
.cert-chip,
.credential-chip,
.ribbon-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(124, 58, 237, 0.4);
  background: rgba(124, 58, 237, 0.12);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.playbook-list,
.insight-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 18px 0;
}

.playbook-item,
.insight-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 16px;
  background: var(--portfolio-card-subtle);
  border: 1px solid var(--border);
  line-height: 1.6;
  color: var(--text-dim);
}

.success-media {
  max-width: 420px;
}

.rating-card .muted {
  font-size: 13px;
  margin-top: 6px;
}

.metrics-band {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.focus-tags span {
  background: rgba(34, 211, 238, 0.18);
  border: 1px solid rgba(34, 211, 238, 0.3);
}

.metric-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--portfolio-card-subtle);
  box-shadow: 0 16px 36px rgba(11, 16, 32, 0.35);
}

.metric-card strong {
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 800;
  color: var(--brand-1);
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.metric-card span {
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stack-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--portfolio-card-subtle);
  box-shadow: 0 18px 40px rgba(11, 16, 32, 0.4);
}

.stat-ribbon {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.ribbon-chip {
  border-style: dashed;
  background: rgba(34, 211, 238, 0.12);
}

.project-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.project-card img,
.case-card img,
.showcase-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.project-card-content,
.case-card-body {
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.timeline {
  position: relative;
  display: grid;
  gap: 26px;
  margin-top: 40px;
  padding-left: 32px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(124, 58, 237, 0.35);
}

.timeline-item {
  position: relative;
  padding-left: 12px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: var(--brand-2);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.18);
}

.timeline-item .timeline-dot {
  display: none;
}

.timeline-content {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--portfolio-card-subtle);
  padding: 18px 20px;
  box-shadow: 0 16px 36px rgba(11, 16, 32, 0.35);
}

.timeline-year {
  font-weight: 800;
  color: var(--brand-1);
  font-size: 16px;
  margin-bottom: 8px;
}

.timeline-title {
  font-weight: 700;
  font-size: 18px;
  margin: 0;
  color: var(--text);
}

.timeline-desc,
.timeline-content p {
  margin: 6px 0 0;
  color: var(--text-dim);
  line-height: 1.7;
}

.design-showcase {
  padding: clamp(60px, 10vw, 100px) 0;
}

.showcase-item img {
  height: 260px;
}

.case-section,
.architecture-section,
.projects-section,
.impact-section,
.voices-section,
.care-section,
.narrative-section,
.playbook-section {
  padding: clamp(60px, 10vw, 100px) 0;
}

.case-header,
.framework-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px;
}

.case-meta {
  font-size: 12px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--brand-2);
}

.case-impact,
.project-card p,
.impact-desc,
.playbook-card p {
  color: var(--text-dim);
  line-height: 1.7;
  margin: 0;
}

.case-card-body h3,
.project-card h3,
.playbook-card h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.voice-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.voice-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: var(--text);
}

.voice-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.voice-author img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.45);
  object-fit: cover;
}

.voice-author strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
}

.voice-author span {
  font-size: 13px;
  color: var(--text-dim);
}

.care-card h4,
.journey-step h4 {
  margin: 6px 0 12px;
  font-size: 18px;
  font-weight: 700;
}

.care-card p,
.journey-step p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.7;
}

.cta-container,
.cta-panel {
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(40px, 6vw, 60px);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(34, 211, 238, 0.12));
  box-shadow: 0 22px 50px rgba(11, 16, 32, 0.4);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
  text-align: center;
}

.cta-panel p,
.cta-container p {
  margin: 0;
  color: var(--text-dim);
  max-width: 520px;
  line-height: 1.7;
}

.hero-cloud .tech-pill,
.badge-floating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.14);
  color: var(--text);
  width: fit-content;
}

.cloud-title {
  font-size: clamp(34px, 6vw, 54px);
  font-weight: 900;
  margin: 10px 0;
}

.resilience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 14px;
  margin: 20px 0;
}

.resilience-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 16px 18px;
  background: var(--portfolio-card-subtle);
  text-align: center;
  box-shadow: 0 14px 32px rgba(11, 16, 32, 0.35);
}

.resilience-card strong {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--brand-1);
}

.resilience-card span {
  font-size: 13px;
  text-transform: uppercase;
  color: var(--text-dim);
  letter-spacing: 0.6px;
}

.cert-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.architecture-card ul,
.framework-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text-dim);
}

.architecture-card ul li,
.framework-card ul li {
  position: relative;
  padding-left: 18px;
}

.architecture-card ul li::before,
.framework-card ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-2);
}

.case-card {
  overflow: hidden;
  padding: 0;
}

.case-card img {
  border-bottom: 1px solid var(--border);
}

.insight-item svg,
.playbook-item svg {
  flex-shrink: 0;
  color: var(--brand-2);
}

.metric-row .metric-card {
  background: var(--portfolio-card-subtle);
}

.data-card > p {
  margin: 0;
}

.credentials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.credential-chip {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.35);
}

.spotlight-grid .voice-card {
  height: 100%;
}

.journey-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.journey-step strong {
  font-size: 13px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--brand-2);
}

@media (max-width: 1024px) {
  .profile-grid,
  .cloud-grid,
  .success-grid,
  .brand-grid,
  .strategy-grid {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
  }
  .profile-content,
  .cloud-stats,
  .success-content,
  .brand-content,
  .data-card {
    align-items: center;
  }
  .profile-badge,
  .brand-badge,
  .rating-card {
    position: static;
    margin-top: 22px;
  }
  .social-links {
    justify-content: center;
  }
  .stat-item,
  .metric-tile,
  .stat-panel {
    align-items: center;
  }
  .profile-image-wrapper,
  .success-media,
  .brand-media,
  .diagram {
    margin-bottom: 32px;
  }
}

@media (max-width: 640px) {
  .hero-profile,
  .hero-cloud,
  .hero-success,
  .hero-brand,
  .hero-strategy {
    padding: 60px 0;
  }
  .profile-image-main,
  .success-media img,
  .brand-media img,
  .diagram img {
    border-radius: 20px;
  }
  .profile-stats,
  .metrics-band,
  .stat-cluster,
  .metric-row,
  .stack-grid,
  .expertise-grid,
  .architecture-grid,
  .case-grid,
  .framework-grid,
  .impact-grid,
  .voices-grid,
  .care-grid,
  .narrative-grid,
  .journey-grid,
  .playbook-grid,
  .project-grid,
  .showcase-grid,
  .spotlight-grid {
    grid-template-columns: 1fr;
  }
  .timeline {
    padding-left: 0;
  }
  .timeline::before {
    left: 8px;
  }
  .timeline-item {
    padding-left: 28px;
  }
  .timeline-item::before {
    left: -4px;
  }
  .case-card img,
  .project-card img,
  .showcase-item img {
    height: 180px;
  }
}
