/* ============================================
   kodta.me — Design System
   ============================================ */

:root {
  /* Colors */
  --bg: #0A0F1C;
  --bg-soft: #0F172A;
  --bg-elev: #131C2E;
  --surface: rgba(30, 41, 59, 0.4);
  --surface-hover: rgba(30, 41, 59, 0.7);
  --border: rgba(148, 163, 184, 0.12);
  --border-strong: rgba(148, 163, 184, 0.25);

  --text: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;

  --accent: #10B981;        /* emerald-500 */
  --accent-2: #34D399;      /* emerald-400 */
  --accent-3: #06B6D4;      /* cyan-500 */
  --accent-glow: rgba(16, 185, 129, 0.35);

  --ai: #A78BFA;            /* violet-400 */
  --ai-glow: rgba(167, 139, 250, 0.3);

  --warn: #F59E0B;

  /* Type */
  --font-sans: 'Archivo', 'Space Grotesk', system-ui, -apple-system, Segoe UI, sans-serif;
  --font-display: 'Archivo', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* Layout */
  --container: 1200px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms;
  --t: 220ms;
  --t-slow: 400ms;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

button { font: inherit; cursor: pointer; }

::selection { background: var(--accent); color: var(--bg); }

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================
   Background ambient
   ============================================ */

.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
}

.bg-glow--1 {
  top: -200px;
  left: -200px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.25;
}

.bg-glow--2 {
  top: 30%;
  right: -200px;
  background: radial-gradient(circle, var(--ai) 0%, transparent 70%);
  opacity: 0.18;
}

/* ============================================
   Layout
   ============================================ */

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

main { position: relative; z-index: 1; }

.section {
  position: relative;
  padding: 120px 0;
}

.section--alt {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.5) 50%, transparent 100%);
}

.section__head {
  max-width: 720px;
  margin-bottom: 64px;
}

.section__label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--accent-2);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--text);
}

.section__subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   Header
   ============================================ */

.header {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 50;
  transition: top var(--t) var(--ease);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 20px;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.header.is-scrolled .header__inner {
  background: rgba(10, 15, 28, 0.85);
  border-color: var(--border-strong);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
  color: var(--bg);
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 4px 12px var(--accent-glow);
}

.logo__text { white-space: nowrap; }
.logo__dot { color: var(--accent-2); }

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  position: relative;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: color var(--t) var(--ease), background var(--t) var(--ease);
  cursor: pointer;
}

.nav a:hover {
  color: var(--text);
  background: rgba(148, 163, 184, 0.08);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-switch {
  display: flex;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch__btn {
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 6px 11px;
  border-radius: 999px;
  transition: all var(--t) var(--ease);
}

.lang-switch__btn:hover { color: var(--text); }

.lang-switch__btn.is-active {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
  color: var(--bg);
  box-shadow: 0 2px 8px var(--accent-glow);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 38px;
  height: 38px;
  padding: 0;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.menu-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--t) var(--ease), opacity var(--t) var(--ease);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ============================================
   Buttons
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: transform var(--t-fast) var(--ease),
              background var(--t) var(--ease),
              border-color var(--t) var(--ease),
              box-shadow var(--t) var(--ease),
              color var(--t) var(--ease);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  user-select: none;
}

.btn--sm {
  padding: 9px 16px;
  font-size: 13px;
  border-radius: 10px;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
  color: var(--bg);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--primary:hover {
  box-shadow: 0 8px 28px var(--accent-glow);
  transform: translateY(-1px);
}

.btn--ghost {
  background: rgba(148, 163, 184, 0.06);
  color: var(--text);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  background: rgba(148, 163, 184, 0.12);
  border-color: var(--accent-2);
  color: var(--text);
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding: 160px 0 100px;
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
  margin-bottom: 28px;
}

.badge__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s var(--ease) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.85); }
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5.5vw, 4.75rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  color: var(--text);
}

.hero__title span { display: block; }

.hero__title-accent {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-3) 60%, var(--ai) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero__description {
  font-size: 18px;
  color: var(--text-muted);
  margin: 0 0 36px;
  max-width: 520px;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__meta-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero__meta-label {
  font-size: 13px;
  color: var(--text-dim);
}

.hero__meta-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* Terminal */

.hero__visual {
  position: relative;
}

.terminal {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.9) 0%, rgba(10, 15, 28, 0.9) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.02) inset,
    0 0 80px rgba(16, 185, 129, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transform: rotate(-1deg);
  transition: transform var(--t-slow) var(--ease);
}

.terminal:hover { transform: rotate(0); }

.terminal__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--border);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.3);
}

.terminal__dot:nth-child(1) { background: #FF5F57; }
.terminal__dot:nth-child(2) { background: #FEBC2E; }
.terminal__dot:nth-child(3) { background: #28C840; }

.terminal__title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.terminal__body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.8;
}

.terminal__line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.t-prompt { color: var(--accent-2); }
.t-cmd    { color: var(--text); }
.t-muted  { color: var(--text-dim); }
.t-ok     { color: var(--accent-2); }
.t-cursor {
  color: var(--accent-2);
  animation: blink 1s steps(2) infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.floating-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  animation: float 4s ease-in-out infinite;
}

.floating-chip--1 {
  top: -16px;
  right: 24px;
  color: var(--accent-2);
}

.floating-chip--2 {
  bottom: -16px;
  left: 32px;
  color: var(--ai);
  animation-delay: 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ============================================
   About
   ============================================ */

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.about__bio p {
  font-size: 17px;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.7;
}

.about__bio strong {
  color: var(--text);
  font-weight: 600;
}

.about__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.info-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t) var(--ease);
}

.info-card:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.info-card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(6, 182, 212, 0.18) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
  border-radius: 10px;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.info-card h3 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: var(--text);
}

.info-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ============================================
   Skills
   ============================================ */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
}

.skill-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--t) var(--ease);
  cursor: default;
}

.skill-card:hover {
  background: var(--surface-hover);
  border-color: var(--skill-color, var(--border-strong));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.skill-card__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: var(--bg-elev);
  border-radius: 10px;
  color: var(--skill-color, var(--accent-2));
  flex-shrink: 0;
  transition: background var(--t) var(--ease);
}

.skill-card:hover .skill-card__icon {
  background: color-mix(in srgb, var(--skill-color, var(--accent-2)) 14%, var(--bg-elev));
}

.skill-card__name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 2px;
}

.skill-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* ============================================
   Services
   ============================================ */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  position: relative;
  padding: 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: all var(--t) var(--ease);
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, var(--service-glow, transparent) 0%, transparent 50%);
  opacity: 0;
  transition: opacity var(--t-slow) var(--ease);
  pointer-events: none;
}

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

.service-card:hover {
  border-color: var(--service-color, var(--border-strong));
  transform: translateY(-3px);
  background: var(--surface-hover);
}

.service-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: color-mix(in srgb, var(--service-color, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--service-color, var(--accent)) 30%, transparent);
  border-radius: 12px;
  color: var(--service-color, var(--accent-2));
}

.service-card__price {
  text-align: right;
}

.service-card__price-from {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 2px;
}

.service-card__price-value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

.service-card__price-cur {
  color: var(--service-color, var(--accent-2));
  margin-left: 4px;
}

.service-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px;
  color: var(--text);
  letter-spacing: -0.01em;
  position: relative;
}

.service-card__desc {
  font-size: 15px;
  color: var(--text-muted);
  margin: 0 0 20px;
  line-height: 1.6;
  position: relative;
}

.service-card__features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.service-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}

.service-card__features svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--service-color, var(--accent-2));
}

.service-card__cta {
  margin-top: auto;
  align-self: flex-start;
  position: relative;
}

.services-note {
  margin-top: 32px;
  text-align: center;
  font-size: 13px;
  color: var(--text-dim);
}

/* ============================================
   Works
   ============================================ */

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.work-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t) var(--ease);
  text-decoration: none;
  color: inherit;
}

.work-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}

.work-card__preview {
  position: relative;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--work-c1, #1E293B) 0%, var(--work-c2, #0F172A) 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card__preview::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}

.work-card__preview-mark {
  position: relative;
  font-family: var(--font-display);
  font-size: 88px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.55) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.work-card__preview img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: transform var(--t-slow) var(--ease);
}

.work-card:hover .work-card__preview img {
  transform: scale(1.04);
}

.work-card__preview-tag {
  z-index: 2;
}

.work-card__preview-tag {
  position: absolute;
  bottom: 16px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  background: rgba(10, 15, 28, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text);
}

.work-card__preview-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.work-card__body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.work-card__url {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-2);
}

.work-card__title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  letter-spacing: -0.01em;
}

.work-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.55;
}

.work-card__stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.work-card__stack span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  padding: 3px 8px;
  background: var(--bg-elev);
  border-radius: 6px;
}

.work-card__visit {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: gap var(--t) var(--ease);
}

.work-card:hover .work-card__visit {
  gap: 10px;
  color: var(--accent-2);
}

/* ============================================
   Contact
   ============================================ */

.contact {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 40px;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.6) 0%, rgba(30, 41, 59, 0.4) 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
}

.contact::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -10%;
  right: -10%;
  height: 200%;
  background: radial-gradient(ellipse at center top, var(--accent-glow) 0%, transparent 50%);
  opacity: 0.6;
  pointer-events: none;
}

.contact__head {
  position: relative;
  margin-bottom: 40px;
}

.contact__head .section__label { display: inline-block; margin-bottom: 14px; }
.contact__head .section__title { margin: 0 auto 14px; }
.contact__head .section__subtitle { margin: 0 auto; }

.contact__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  transition: all var(--t) var(--ease);
  text-align: left;
}

.contact-card:hover {
  background: rgba(15, 23, 42, 0.9);
  transform: translateY(-2px);
}

.contact-card--telegram:hover { border-color: #229ED9; }
.contact-card--telegram .contact-card__icon { color: #229ED9; }
.contact-card--github:hover { border-color: var(--text); }
.contact-card--github .contact-card__icon { color: var(--text); }

.contact-card__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  background: var(--bg-elev);
  border-radius: 14px;
  flex-shrink: 0;
}

.contact-card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.contact-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.contact-card__value {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.contact-card__arrow {
  color: var(--text-dim);
  transition: transform var(--t) var(--ease), color var(--t) var(--ease);
}

.contact-card:hover .contact-card__arrow {
  transform: translate(2px, -2px);
  color: var(--text);
}

/* ============================================
   Footer
   ============================================ */

.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
  position: relative;
  z-index: 1;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
}

.footer__brand .logo__mark {
  width: 28px;
  height: 28px;
  font-size: 16px;
}

.footer__copy {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

.footer__links {
  display: flex;
  gap: 20px;
}

.footer__links a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color var(--t) var(--ease);
}

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

/* ============================================
   Reveal on scroll
   ============================================ */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
  will-change: opacity, transform;
}

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

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }
  .hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
  .about__grid { grid-template-columns: 1fr; gap: 40px; }
  .works-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header__actions .btn { display: none; }

  .header { top: 12px; left: 12px; right: 12px; }
  .header__inner { padding: 10px 14px; }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px;
    background: rgba(10, 15, 28, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    gap: 4px;
  }
  .nav.is-open a { padding: 12px 14px; }

  .section { padding: 80px 0; }
  .section__head { margin-bottom: 40px; }

  .hero { padding: 130px 0 60px; min-height: auto; }
  .hero__meta { gap: 16px; }
  .hero__meta-num { font-size: 22px; }
  .floating-chip--1 { right: 12px; }
  .floating-chip--2 { left: 12px; }

  .about__cards { grid-template-columns: 1fr 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .works-grid { grid-template-columns: 1fr; }
  .contact { padding: 40px 24px; }
  .contact__cards { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .logo__text { display: none; }
  .lang-switch__btn { padding: 5px 9px; font-size: 10px; }
  .hero { padding: 120px 0 40px; }
  .hero__title { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .hero__description { font-size: 16px; }
  .hero__meta { flex-wrap: wrap; gap: 14px; }
  .hero__meta-divider { display: none; }
  .about__cards { grid-template-columns: 1fr; }
  .service-card { padding: 24px; }
  .contact { padding: 32px 18px; }
}
