:root {
  --primary: #0F172A;
  --primary-light: #1E3A5F;
  --primary-mid: #152244;
  --accent: #3B82F6;
  --accent-hover: #60A5FA;
  --accent-glow: rgba(59, 130, 246, 0.4);
  --accent-subtle: rgba(59, 130, 246, 0.08);
  --accent-subtle-strong: rgba(59, 130, 246, 0.15);
  --purple: #8B5CF6;
  --cyan: #06B6D4;
  --emerald: #10B981;
  --bg: #F8FAFC;
  --bg-alt: #ffffff;
  --text: #1E293B;
  --text-light: #64748B;
  --text-inverse: #ffffff;
  --border: #E2E8F0;
  --glass: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-light: rgba(255, 255, 255, 0.7);
  --glass-light-border: rgba(255, 255, 255, 0.4);
  --shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.1), 0 2px 4px -1px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 20px 40px -8px rgba(15, 23, 42, 0.12), 0 8px 16px -4px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 30px rgba(59, 130, 246, 0.15);
  --shadow-glow-strong: 0 0 60px rgba(59, 130, 246, 0.25);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-width: 1200px;
  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* =========== KEYFRAMES =========== */

@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33% { transform: translateY(-12px) rotate(1deg); }
  66% { transform: translateY(6px) rotate(-1deg); }
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-20px) translateX(10px); }
  50% { transform: translateY(-8px) translateX(-5px); }
  75% { transform: translateY(-25px) translateX(8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.05); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes revealUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes revealScale {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes orbMove {
  0% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -40px) scale(1.1); }
  50% { transform: translate(-20px, -20px) scale(0.95); }
  75% { transform: translate(15px, 10px) scale(1.05); }
  100% { transform: translate(0, 0) scale(1); }
}

@keyframes borderGlow {
  0%, 100% { border-color: rgba(59, 130, 246, 0.2); }
  50% { border-color: rgba(59, 130, 246, 0.5); }
}

/* =========== SCROLL REVEAL =========== */

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal="scale"] {
  transform: scale(0.92) translateY(20px);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* =========== RESETS & BASE =========== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.15;
  color: var(--primary);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5.5vw, 3.5rem); margin-bottom: 1rem; }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 0.75rem; }
h3 { font-size: clamp(1.25rem, 3vw, 1.5rem); margin-bottom: 0.5rem; }
h4 { font-size: 1.125rem; margin-bottom: 0.5rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
  position: relative;
}

.section--alt {
  background: var(--bg-alt);
}

.section--dark {
  background: var(--primary);
  color: var(--text-inverse);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-inverse);
}

.section__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3.5rem;
}

.section__subtitle {
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8125rem;
  margin-bottom: 0.75rem;
  display: inline-block;
}

/* =========== HEADER =========== */

.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-inverse);
  font-weight: 700;
  font-size: 1.25rem;
  transition: transform var(--transition);
}

.logo:hover {
  transform: scale(1.02);
}

.logo img {
  height: 40px;
  width: auto;
}

.nav {
  display: none;
}

.nav__list {
  display: flex;
  gap: 2.5rem;
}

.nav__link {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0;
  position: relative;
  transition: color var(--transition);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width var(--transition), left var(--transition);
  border-radius: 2px;
}

.nav__link:hover {
  color: var(--text-inverse);
}

.nav__link:hover::after {
  width: 100%;
  left: 0;
}

.nav__dropdown {
  position: relative;
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: -12px;
  min-width: 220px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all var(--transition);
  padding: 0.5rem 0;
  border: 1px solid var(--border);
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__dropdown-link {
  display: block;
  padding: 0.625rem 1.25rem;
  color: var(--text);
  font-size: 0.875rem;
}

.nav__dropdown-link:hover {
  background: var(--accent-subtle);
  color: var(--accent);
}

.header__cta {
  display: none;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-inverse);
  transition: var(--transition);
  border-radius: 2px;
}

.mobile-nav {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.97);
  backdrop-filter: blur(24px);
  padding: 2rem;
  transform: translateX(100%);
  transition: transform var(--transition);
  overflow-y: auto;
}

.mobile-nav.active {
  transform: translateX(0);
}

.mobile-nav__list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-nav__link {
  display: block;
  color: var(--text-inverse);
  padding: 0.875rem 0;
  font-size: 1.125rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: color var(--transition), padding-left var(--transition);
}

.mobile-nav__link:hover {
  color: var(--accent);
  padding-left: 0.5rem;
}

.mobile-nav__sub {
  padding-left: 1rem;
}

.mobile-nav__sub .mobile-nav__link {
  font-size: 1rem;
  opacity: 0.9;
}

@media (min-width: 1024px) {
  .nav { display: block; }
  .header__cta { display: inline-flex; }
  .menu-toggle, .mobile-nav { display: none; }
}

/* =========== BUTTONS =========== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
  letter-spacing: -0.01em;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, #2563EB 100%);
  color: var(--text-inverse);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #60A5FA 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity var(--transition);
}

.btn--primary:hover {
  color: var(--text-inverse);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

.btn--primary:hover::before {
  opacity: 1;
}

.btn--primary span, .btn--primary {
  position: relative;
  z-index: 1;
}

.btn--secondary {
  background: transparent;
  color: var(--accent);
  border: 2px solid rgba(59, 130, 246, 0.4);
  backdrop-filter: blur(8px);
}

.btn--secondary:hover {
  background: var(--accent);
  color: var(--text-inverse);
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(59, 130, 246, 0.3);
}

.btn--white {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn--white:hover {
  background: var(--bg-alt);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.btn--lg {
  padding: 1.125rem 2.75rem;
  font-size: 1rem;
  border-radius: 14px;
}

/* =========== HERO =========== */

.hero {
  background: var(--primary);
  color: var(--text-inverse);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  will-change: transform;
}

.hero__orb--1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  top: -20%;
  right: -10%;
  animation: orbMove 12s ease-in-out infinite;
}

.hero__orb--2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--purple) 0%, transparent 70%);
  bottom: -30%;
  left: -5%;
  animation: orbMove 16s ease-in-out infinite reverse;
}

.hero__orb--3 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--cyan) 0%, transparent 70%);
  top: 40%;
  left: 40%;
  animation: orbMove 14s ease-in-out infinite 2s;
}

.hero__grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.hero__inner {
  display: grid;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__content {
  max-width: 620px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  color: var(--accent-hover);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 2rem;
  letter-spacing: 0.02em;
}

.hero__badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-glow);
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  color: var(--text-inverse);
  margin-bottom: 1.5rem;
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent-hover) 0%, var(--cyan) 50%, var(--purple) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s ease-in-out infinite;
}

.hero__text {
  font-size: 1.125rem;
  opacity: 0.75;
  margin-bottom: 2.5rem;
  line-height: 1.8;
  max-width: 540px;
}

.hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__visual {
  display: none;
  perspective: 1000px;
}

.hero__3d-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  transform-style: preserve-3d;
  animation: float 8s ease-in-out infinite;
}

.hero__3d-card__face {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.hero__3d-card__face::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(59, 130, 246, 0.1), transparent, rgba(139, 92, 246, 0.1), transparent);
  animation: spin 8s linear infinite;
}

.hero__3d-card__inner {
  position: relative;
  z-index: 1;
}

.hero__code-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.hero__code-line .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.hero__code-line .dot--blue { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.hero__code-line .dot--purple { background: var(--purple); box-shadow: 0 0 8px rgba(139, 92, 246, 0.4); }
.hero__code-line .dot--cyan { background: var(--cyan); box-shadow: 0 0 8px rgba(6, 182, 212, 0.4); }
.hero__code-line .dot--green { background: var(--emerald); box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }

.hero__code-line .tag { color: var(--accent-hover); }
.hero__code-line .attr { color: var(--purple); }
.hero__code-line .val { color: var(--emerald); }

.hero__stat-bar {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--glass-border);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.hero__stat-item .num {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-hover), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__stat-item .label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 0.25rem;
}

.hero__floating {
  position: absolute;
  pointer-events: none;
}

.hero__floating--1 {
  top: 10%;
  right: -30px;
  width: 80px;
  height: 80px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatSlow 10s ease-in-out infinite;
  backdrop-filter: blur(8px);
}

.hero__floating--2 {
  bottom: 15%;
  right: 60px;
  width: 60px;
  height: 60px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatSlow 8s ease-in-out infinite 1s;
  backdrop-filter: blur(8px);
}

.hero__floating--3 {
  bottom: 40%;
  left: -20px;
  width: 50px;
  height: 50px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: floatSlow 12s ease-in-out infinite 3s;
  backdrop-filter: blur(8px);
}

.hero__floating svg {
  width: 24px;
  height: 24px;
  stroke: var(--accent-hover);
  fill: none;
  stroke-width: 1.5;
}

@media (min-width: 768px) {
  .hero { padding: 7rem 0 6rem; }
  .hero__inner { grid-template-columns: 1fr 1fr; }
  .hero__visual { display: block; }
}

/* =========== TOPIC CARDS (3D) =========== */

.topics-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .topics-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .topics-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
}

.topic-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
}

.topic-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.04) 0%, rgba(139, 92, 246, 0.02) 100%);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: inherit;
}

.topic-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple), var(--cyan));
  background-size: 200% 100%;
  opacity: 0;
  transition: opacity var(--transition);
  animation: gradientShift 4s ease-in-out infinite;
}

.topic-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  border-color: rgba(59, 130, 246, 0.2);
}

.topic-card:hover::before,
.topic-card:hover::after {
  opacity: 1;
}

.topic-card__icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(139, 92, 246, 0.08) 100%);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  position: relative;
  transition: transform var(--transition-bounce), box-shadow var(--transition);
}

.topic-card:hover .topic-card__icon {
  transform: scale(1.1) translateZ(20px);
  box-shadow: 0 8px 20px rgba(59, 130, 246, 0.15);
}

.topic-card__icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.topic-card__title {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
  position: relative;
}

.topic-card__text {
  color: var(--text-light);
  font-size: 0.9375rem;
  line-height: 1.65;
  position: relative;
}

/* =========== CTA SECTION =========== */

.cta {
  background: var(--primary);
  color: var(--text-inverse);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.cta h2 {
  color: var(--text-inverse);
  margin-bottom: 1rem;
  position: relative;
}

.cta__text {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0.8;
  font-size: 1.125rem;
  position: relative;
}

.cta__btns {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  position: relative;
}

/* =========== ABOUT SECTION =========== */

.about-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; }
}

.about-grid__list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2rem;
}

.about-grid__item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  transition: all var(--transition);
}

.about-grid__item:hover {
  background: var(--accent-subtle);
  transform: translateX(4px);
}

.about-grid__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent) 0%, #2563EB 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.about-grid__check svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--text-inverse);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* About visual */
.about-visual {
  position: relative;
  perspective: 1000px;
}

.about-visual__card {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: float 10s ease-in-out infinite;
}

.about-visual__card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 30px 30px;
}

.about-visual__metric {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  position: relative;
}

.about-visual__metric:last-child {
  border-bottom: none;
}

.about-visual__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.about-visual__dot--blue { background: var(--accent); box-shadow: 0 0 12px var(--accent-glow); }
.about-visual__dot--purple { background: var(--purple); box-shadow: 0 0 12px rgba(139, 92, 246, 0.4); }
.about-visual__dot--cyan { background: var(--cyan); box-shadow: 0 0 12px rgba(6, 182, 212, 0.4); }
.about-visual__dot--green { background: var(--emerald); box-shadow: 0 0 12px rgba(16, 185, 129, 0.4); }

.about-visual__bar-wrap {
  flex: 1;
}

.about-visual__bar-label {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0.375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.about-visual__bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  overflow: hidden;
}

.about-visual__bar-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-visual__bar-fill--blue { background: linear-gradient(90deg, var(--accent), var(--accent-hover)); width: 95%; }
.about-visual__bar-fill--purple { background: linear-gradient(90deg, var(--purple), #A78BFA); width: 88%; }
.about-visual__bar-fill--cyan { background: linear-gradient(90deg, var(--cyan), #22D3EE); width: 92%; }
.about-visual__bar-fill--green { background: linear-gradient(90deg, var(--emerald), #34D399); width: 85%; }

.about-visual__val {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  min-width: 3rem;
  text-align: right;
}

/* =========== FOOTER =========== */

.footer {
  background: var(--primary);
  color: var(--text-inverse);
  padding: 4rem 0 2rem;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), transparent);
}

.footer__inner {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 768px) {
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}

.footer__brand p {
  opacity: 0.7;
  font-size: 0.9375rem;
  margin-top: 1rem;
  line-height: 1.7;
}

.footer__title {
  color: var(--text-inverse);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__link {
  color: rgba(255,255,255,0.65);
  font-size: 0.9375rem;
  transition: color var(--transition), padding-left var(--transition);
}

.footer__link:hover {
  color: var(--accent-hover);
  padding-left: 0.25rem;
}

.footer__bottom {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 0.8125rem;
  opacity: 0.5;
}

/* =========== BREADCRUMBS =========== */

.breadcrumbs {
  padding: 1rem 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
}

.breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.breadcrumbs__item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs__item::after {
  content: '/';
  color: var(--text-light);
  opacity: 0.5;
}

.breadcrumbs__item:last-child::after { display: none; }

.breadcrumbs__link { color: var(--text-light); }
.breadcrumbs__link:hover { color: var(--accent); }
.breadcrumbs__current { color: var(--text); font-weight: 500; }

/* =========== PAGE HEADER =========== */

.page-header {
  background: var(--primary);
  color: var(--text-inverse);
  padding: 4.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 70% 100%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
}

.page-header h1 {
  color: var(--text-inverse);
  margin-bottom: 1rem;
  position: relative;
}

.page-header__text {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.125rem;
  opacity: 0.8;
  position: relative;
}

/* =========== ARTICLE CONTENT =========== */

.content {
  max-width: 800px;
  margin: 0 auto;
}

.content h2 { margin-top: 2.5rem; margin-bottom: 1rem; }
.content h3 { margin-top: 2rem; margin-bottom: 0.75rem; }
.content p { margin-bottom: 1.25rem; }

.content ul, .content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.content ul { list-style: disc; }
.content ol { list-style: decimal; }
.content li { margin-bottom: 0.5rem; }

.content blockquote {
  margin: 2rem 0;
  padding: 1.5rem 2rem;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, rgba(139, 92, 246, 0.04) 100%);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
}

.content pre {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  background: var(--primary);
  color: var(--text-inverse);
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.content code {
  font-family: 'SF Mono', 'Fira Code', Consolas, monospace;
  font-size: 0.875em;
}

.content :not(pre) > code {
  background: var(--accent-subtle);
  color: var(--accent);
  padding: 0.125rem 0.5rem;
  border-radius: 6px;
  font-size: 0.85em;
}

.content table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  border-radius: var(--radius);
  overflow: hidden;
}

.content th, .content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.content th {
  background: var(--accent-subtle);
  font-weight: 600;
}

/* =========== BLOG =========== */

.blog-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

.blog-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.blog-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background: linear-gradient(135deg, var(--accent-subtle) 0%, rgba(139, 92, 246, 0.06) 100%);
  color: var(--accent);
  border-radius: 50px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: all var(--transition);
}

a.blog-tag:hover {
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.blog-tags-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.blog-tag-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50px;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: capitalize;
  transition: all var(--transition);
}

.blog-tag-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.blog-tag-link--active {
  background: linear-gradient(135deg, var(--accent) 0%, #2563EB 100%);
  color: var(--text-inverse);
  border-color: transparent;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.blog-tag-link--active:hover {
  color: var(--text-inverse);
}

.blog-tag-count {
  font-size: 0.6875rem;
  opacity: 0.7;
}

/* Blog grid */
.blog-grid { display: grid; gap: 1.75rem; }

@media (min-width: 640px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(3, 1fr); }
}

.blog-grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .blog-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .blog-grid--3 { grid-template-columns: repeat(3, 1fr); } }

@media (min-width: 1024px) {
  .blog-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
  }
  .blog-card--featured .blog-card__image { aspect-ratio: auto; height: 100%; }
  .blog-card--featured .blog-card__image img { height: 100%; object-fit: cover; }
  .blog-card--featured .blog-card__body { display: flex; flex-direction: column; justify-content: center; padding: 2.5rem; }
  .blog-card--featured .blog-card__title { font-size: 1.5rem; }
}

/* Blog card */
.blog-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all var(--transition);
  color: var(--text);
  position: relative;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(59, 130, 246, 0.1);
  color: var(--text);
  border-color: rgba(59, 130, 246, 0.2);
}

.blog-card__image {
  aspect-ratio: 600 / 315;
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.06);
}

.blog-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card__title {
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
  letter-spacing: -0.01em;
  line-height: 1.35;
}

.blog-card__excerpt {
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: auto;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.6;
}

/* =========== PAGINATION =========== */

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.pagination__pages { display: flex; align-items: center; gap: 0.25rem; }

.pagination__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  transition: all var(--transition);
}

.pagination__link:hover { background: var(--accent-subtle); color: var(--accent); }

.pagination__link--active {
  background: linear-gradient(135deg, var(--accent) 0%, #2563EB 100%);
  color: var(--text-inverse);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.pagination__link--active:hover { background: linear-gradient(135deg, var(--accent-hover) 0%, var(--accent) 100%); color: var(--text-inverse); }
.pagination__link--disabled { opacity: 0.3; pointer-events: none; }
.pagination__ellipsis { padding: 0 0.25rem; color: var(--text-light); }
.pagination__prev, .pagination__next { font-weight: 600; }

/* =========== ARTICLE PAGE =========== */

.article-hero {
  background: var(--primary);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.article-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(59, 130, 246, 0.1) 0%, transparent 60%);
}

.article-hero__img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.article-header {
  max-width: 800px;
  margin: 0 auto 2rem;
}

.article-header h1 {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.article-tags-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-size: 0.9375rem;
  color: var(--text-light);
}

.blog-content h2 { margin-top: 2.5rem; }
.blog-content h3 { margin-top: 2rem; }
.blog-content ul, .blog-content ol { list-style: disc; padding-left: 1.5rem; margin-bottom: 1.25rem; }
.blog-content ol { list-style: decimal; }
.blog-content li { margin-bottom: 0.5rem; }

/* =========== UTILITIES =========== */

.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  padding: 1rem;
  background: var(--accent);
  color: var(--text-inverse);
  z-index: 9999;
}

.skip-link:focus { top: 0; }

/* =========== 404 =========== */

.error-page {
  padding: 6rem 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
}

.error-page__inner { max-width: 600px; margin: 0 auto; }

.error-page__code {
  font-size: clamp(6rem, 15vw, 10rem);
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--accent) 0%, var(--purple) 50%, var(--cyan) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
  animation: gradientShift 4s ease-in-out infinite;
}

.error-page__title { font-size: 1.75rem; margin-bottom: 1rem; color: var(--primary); }
.error-page__text { font-size: 1.125rem; color: var(--text-light); margin-bottom: 2.5rem; line-height: 1.7; }
.error-page__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 3rem; }

/* =========== CAROUSEL =========== */

.home-blog-carousel-section {
  padding: 5rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  position: relative;
}

.home-blog-carousel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.home-blog-carousel__intro { max-width: 36rem; }

.home-blog-carousel__label {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.home-blog-carousel__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--primary);
  margin-bottom: 0.5rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.home-blog-carousel__subtitle { color: var(--text-light); font-size: 1rem; margin: 0; }
.home-blog-carousel__all { flex-shrink: 0; }
.home-blog-carousel { display: flex; align-items: stretch; gap: 0.5rem; }

.home-blog-carousel__btn {
  flex-shrink: 0;
  align-self: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-alt);
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: all var(--transition);
}

.home-blog-carousel__btn:hover:not(:disabled) {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.home-blog-carousel__btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.home-blog-carousel__btn:disabled { opacity: 0.35; cursor: not-allowed; }
.home-blog-carousel__viewport { flex: 1; min-width: 0; overflow: hidden; }

.home-blog-carousel__track {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0.25rem 0 0.5rem;
  will-change: transform;
  transition: transform 0.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.home-blog-carousel__slide { flex-shrink: 0; min-width: 0; box-sizing: border-box; }

.home-blog-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all var(--transition);
  color: inherit;
  text-decoration: none;
}

.home-blog-card:hover {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-4px);
  color: inherit;
}

.home-blog-card__image { aspect-ratio: 320 / 168; overflow: hidden; background: var(--primary); }
.home-blog-card__image--placeholder { min-height: 5rem; background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); }

.home-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.home-blog-card:hover .home-blog-card__image img { transform: scale(1.06); }

.home-blog-card__body {
  padding: 1rem 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-height: 0;
}

.home-blog-card__date {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  font-weight: 600;
}

.home-blog-card__title {
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--primary);
}

@media (max-width: 480px) {
  .home-blog-carousel__btn { display: none; }
}

/* =========== ABOUT PAGE =========== */

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-grid h2 {
  font-size: 2rem;
  font-weight: 800;
  margin: 0.5rem 0 1.5rem;
  color: var(--primary);
}

.about-grid p {
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-visual__card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about-visual__metric {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.about-visual__dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.about-visual__dot--blue { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
.about-visual__dot--purple { background: var(--purple); box-shadow: 0 0 8px rgba(139, 92, 246, 0.4); }
.about-visual__dot--cyan { background: var(--cyan); box-shadow: 0 0 8px rgba(6, 182, 212, 0.4); }
.about-visual__dot--green { background: var(--emerald); box-shadow: 0 0 8px rgba(16, 185, 129, 0.4); }

.about-visual__bar-wrap {
  flex: 1;
}

.about-visual__bar-label {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.4rem;
}

.about-visual__bar {
  height: 8px;
  background: var(--accent-subtle);
  border-radius: 4px;
  overflow: hidden;
}

.about-visual__bar-fill {
  height: 100%;
  border-radius: 4px;
  width: 85%;
  transition: width 1s ease;
}

.about-visual__bar-fill--blue { background: linear-gradient(90deg, var(--accent), var(--accent-hover)); }
.about-visual__bar-fill--purple { background: linear-gradient(90deg, var(--purple), #a78bfa); width: 55%; }
.about-visual__bar-fill--cyan { background: linear-gradient(90deg, var(--cyan), #22d3ee); width: 100%; }
.about-visual__bar-fill--green { background: linear-gradient(90deg, var(--emerald), #34d399); }

.about-visual__val {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  min-width: 50px;
  text-align: right;
}

/* =========== PRINCIPLES =========== */

.principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.principle-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.principle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  opacity: 0;
  transition: var(--transition);
}

.principle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.principle-card:hover::before {
  opacity: 1;
}

.principle-card__num {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1rem;
}

.principle-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.principle-card__text {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* =========== TOOLS PAGE =========== */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.tool-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-glow);
  border-color: var(--accent);
}

.tool-card__badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.8rem;
  border-radius: 20px;
  background: var(--accent-subtle-strong);
  color: var(--accent);
  margin-bottom: 1rem;
}

.tool-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.tool-card__text {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.tool-card__url {
  display: block;
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  opacity: 0.8;
}

/* =========== CONTACT PAGE =========== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: flex-start;
}

.contact-form-wrap h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
}

.form-input {
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg-alt);
  transition: var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.form-input::placeholder {
  color: var(--text-light);
  opacity: 0.6;
}

.form-select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748B' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

.btn--full {
  width: 100%;
  text-align: center;
}

.form-status {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  min-height: 1.5rem;
}

.form-status--success {
  color: var(--emerald);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-info-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: var(--transition);
}

.contact-info-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.contact-info-card--highlight {
  background: linear-gradient(135deg, var(--accent-subtle), var(--accent-subtle-strong));
  border-color: var(--accent);
}

.contact-info-card__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-subtle-strong);
  border-radius: 10px;
  margin-bottom: 1rem;
  color: var(--accent);
}

.contact-info-card__icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-card__title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.contact-info-card__text {
  color: var(--text-light);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.contact-info-card__link {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition);
}

.contact-info-card__link:hover {
  color: var(--accent-hover);
}

/* =========== FAQ =========== */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.faq-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.faq-item__q {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.faq-item__a {
  color: var(--text-light);
  line-height: 1.7;
  font-size: 0.92rem;
}

/* =========== NEW PAGES RESPONSIVE =========== */

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .principles-grid {
    grid-template-columns: 1fr;
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .about-grid h2 {
    font-size: 1.5rem;
  }

  .principle-card__num {
    font-size: 2rem;
  }
}

/* =========== PRINT =========== */

@media print {
  .header, .footer, .cta, .mobile-nav, .hero__bg, [data-reveal] { display: none; }
  body { font-size: 12pt; color: #000; background: #fff; }
}
