/* ==========================================================================
   Blinky Social — stylesheet
   ========================================================================== */

:root {
  --bg: #08080f;
  --bg-alt: #0c0c17;
  --surface: #12121f;
  --surface-2: #171728;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --text: #f4f4f8;
  --text-dim: #a5a5bd;
  --text-dimmer: #6c6c85;

  --accent: #7c5cff;
  --accent-2: #ff5c9c;
  --accent-3: #4dd8ff;
  --gradient: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, var(--accent-3));

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  --container: 1180px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.15;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--text-dim); }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; cursor: pointer; }
img { max-width: 100%; display: block; }
input, select, textarea { font: inherit; color: inherit; }
svg { width: 20px; height: 20px; flex-shrink: 0; }

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

/* Background ambience -------------------------------------------------- */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(600px circle at 15% 10%, rgba(124, 92, 255, 0.18), transparent 60%),
    radial-gradient(500px circle at 85% 25%, rgba(255, 92, 156, 0.12), transparent 60%),
    radial-gradient(700px circle at 50% 90%, rgba(77, 216, 255, 0.1), transparent 60%);
  pointer-events: none;
}

/* Reveal-on-scroll ------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Buttons ------------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary {
  background: var(--gradient);
  background-size: 200% 200%;
  color: #0a0a12;
  box-shadow: 0 8px 30px -8px rgba(124, 92, 255, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -10px rgba(124, 92, 255, 0.75); background-position: 100% 0; }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.07); transform: translateY(-2px); }
.btn-outline { background: transparent; border-color: var(--border-hover); color: var(--text); }
.btn-outline:hover { border-color: var(--accent-3); color: var(--accent-3); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Header ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 210;
  padding: 18px 0;
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(8, 8, 15, 0.75);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  color: #0a0a12; font-weight: 700;
}

.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a { color: var(--text-dim); font-size: 0.93rem; font-weight: 500; position: relative; padding: 4px 0; transition: color 0.2s; }
.main-nav a::after {
  content: ''; position: absolute; left: 0; bottom: -2px; width: 0; height: 1.5px;
  background: var(--gradient); transition: width 0.25s var(--ease);
}
.main-nav a:hover { color: var(--text); }
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.nav-cta { display: inline-flex; }

/* Language switcher --------------------------------------------------- */
.lang-switch { position: relative; }
.lang-current {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text); padding: 8px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
  transition: border-color 0.2s, background 0.2s;
}
.lang-current:hover { border-color: var(--border-hover); background: rgba(255,255,255,0.07); }
.lang-current svg { width: 15px; height: 15px; }
.lang-menu {
  position: absolute; top: calc(100% + 10px); right: 0;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 6px; min-width: 150px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 200;
}
.lang-switch.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 7px; font-size: 0.88rem; color: var(--text-dim); }
.lang-menu a:hover { background: rgba(255,255,255,0.06); color: var(--text); }
.lang-menu a.active { color: var(--accent-3); font-weight: 600; }

/* Mobile nav toggle ----------------------------------------------------- */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  border-radius: 10px;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--text); margin: 0 auto; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero ------------------------------------------------------------------ */
.hero { padding: clamp(60px, 9vw, 110px) 0 clamp(50px, 7vw, 90px); }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px; font-size: 0.8rem; font-weight: 600;
  background: rgba(124, 92, 255, 0.1); border: 1px solid rgba(124, 92, 255, 0.3); color: #c9bcff;
  margin-bottom: 22px;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-3); box-shadow: 0 0 0 0 rgba(77,216,255,0.7); animation: pulseDot 2s infinite; }
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(77,216,255,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(77,216,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(77,216,255,0); }
}

.hero-title { font-size: clamp(2.3rem, 5.2vw, 3.7rem); font-weight: 700; }
.hero-title span { display: block; }
.gradient-text {
  background: var(--gradient); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradientShift 6s ease infinite;
}
@keyframes gradientShift { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.hero-subtitle { font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 520px; margin-top: 18px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 500;
  color: var(--text-dim); background: rgba(255,255,255,0.03); border: 1px solid var(--border);
  padding: 8px 14px; border-radius: 999px;
}
.chip svg { width: 15px; height: 15px; color: var(--accent-3); }

/* Hero visual: mock browser window -------------------------------------- */
.hero-visual { position: relative; }
.mock-window {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden;
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.mock-bar { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.mock-bar span:nth-child(1) { background: #ff5f57; opacity: 0.6; }
.mock-bar span:nth-child(2) { background: #ffbd2e; opacity: 0.6; }
.mock-bar span:nth-child(3) { background: #28c840; opacity: 0.6; }
.mock-body { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.mock-line { height: 12px; border-radius: 6px; background: linear-gradient(90deg, var(--surface-2), rgba(255,255,255,0.08), var(--surface-2)); background-size: 200% 100%; }
.mock-line.pulse { animation: shimmer 2.4s infinite linear; }
.mock-line.w-90 { width: 90%; } .mock-line.w-80 { width: 80%; } .mock-line.w-70 { width: 70%; }
.mock-line.w-60 { width: 60%; } .mock-line.w-50 { width: 50%; } .mock-line.w-40 { width: 40%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 6px 0; }
.mock-grid-2 { grid-template-columns: repeat(2, 1fr); }
.mock-card { aspect-ratio: 1; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px;
  padding: 12px 16px; font-size: 0.82rem; font-weight: 600; box-shadow: var(--shadow);
  animation: floatY 5s ease-in-out infinite;
}
.float-card svg { color: var(--accent-3); width: 18px; height: 18px; }
.float-card-1 { top: -6%; right: -8%; animation-delay: 0.4s; }
.float-card-2 { bottom: 6%; left: -10%; animation-delay: 1.1s; }

/* Section shell ----------------------------------------------------------- */
.section { padding: clamp(60px, 8vw, 100px) 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 10%, rgba(255,255,255,0.015) 90%, transparent); }

.section-head { text-align: center; max-width: 620px; margin: 0 auto 50px; }
.section-head-sm { margin-bottom: 40px; }
.section-head h2, .section-head h3 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.section-head p { font-size: 1.02rem; }

.tag {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-3); margin-bottom: 12px;
}
.tag-sm { margin-bottom: 8px; }

/* Grids & cards --------------------------------------------------------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.card:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--shadow); }

.icon-box {
  width: 50px; height: 50px; border-radius: 13px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(124, 92, 255, 0.12); color: var(--accent);
  border: 1px solid rgba(124, 92, 255, 0.25);
}
.icon-box-alt { background: rgba(77, 216, 255, 0.1); color: var(--accent-3); border-color: rgba(77, 216, 255, 0.25); }
.service-card h3, .why-card h3 { font-size: 1.1rem; }
.service-card p, .why-card p { font-size: 0.92rem; margin-bottom: 0; }

/* Team ----------------------------------------------------------------- */
.team-grid { max-width: 640px; margin: 0 auto; }
.team-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.team-avatar {
  width: 100px; height: 100px; border-radius: 50%; overflow: hidden; margin-bottom: 20px;
  border: 1px solid var(--border); box-shadow: var(--shadow);
}
.team-avatar img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-role { font-size: 0.86rem; color: var(--text-dimmer); margin-bottom: 16px; }
.team-socials { display: flex; gap: 10px; }
.team-contact {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border); color: var(--text-dim);
  transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.team-contact svg { width: 16px; height: 16px; }
.team-contact:hover { color: var(--accent-3); border-color: var(--accent-3); transform: translateY(-2px); }

/* Portfolio ---------------------------------------------------------------- */
.portfolio-showcase {
  display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 46px);
}
.mock-window-sm { animation: none; }
.portfolio-shot {
  display: block; transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.portfolio-shot:hover { transform: translateY(-6px); border-color: var(--border-hover); box-shadow: var(--shadow); }
.portfolio-shot img { width: 100%; height: auto; display: block; }
.portfolio-info h3 { font-size: 1.5rem; }
.portfolio-info .btn { margin-top: 10px; }
.portfolio-more { text-align: center; color: var(--text-dimmer); font-size: 0.88rem; margin: 28px 0 0; }

/* Pricing -------------------------------------------------------------- */
.pricing-grid { max-width: 800px; margin: 0 auto; }
.pricing-card { display: flex; flex-direction: column; }
.pricing-card-highlight { border-color: rgba(124, 92, 255, 0.4); position: relative; }
.pricing-card-highlight::before {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius); padding: 1px;
  background: var(--gradient); opacity: 0.5; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.price { display: flex; align-items: baseline; gap: 8px; margin: 14px 0 6px; flex-wrap: wrap; }
.price-amount { font-family: 'Space Grotesk', sans-serif; font-size: 2.1rem; font-weight: 700; }
.price-period { font-size: 0.85rem; color: var(--text-dimmer); }
.price-desc { font-size: 0.9rem; }
.price-features { margin: 18px 0 26px; display: flex; flex-direction: column; gap: 12px; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; color: var(--text-dim); }
.price-features svg { width: 17px; height: 17px; color: var(--accent-3); margin-top: 2px; }
.pricing-card .btn { margin-top: auto; }
.pricing-note { text-align: center; color: var(--text-dimmer); font-size: 0.88rem; max-width: 500px; margin: 30px auto 0; }

.fine-print-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 800px; margin: 28px auto 0; }
.fine-print-item {
  display: flex; align-items: flex-start; gap: 12px; font-size: 0.85rem; color: var(--text-dim);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 16px 18px;
}
.fine-print-item svg { width: 18px; height: 18px; color: var(--accent-2); margin-top: 1px; }

/* Payment process --------------------------------------------------------- */
.payment-process { margin-top: clamp(60px, 8vw, 96px); }
.process-steps { display: flex; align-items: flex-start; gap: 8px; }
.process-step { flex: 1; text-align: center; padding: 0 6px; }
.process-icon {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px; position: relative;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--accent-3);
}
.process-num {
  position: absolute; bottom: -4px; right: -4px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--gradient); color: #0a0a12; font-size: 0.72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.process-step h4 { font-size: 0.98rem; margin-bottom: 6px; }
.process-step p { font-size: 0.85rem; }
.process-connector { flex: 0 0 auto; width: clamp(20px, 4vw, 60px); height: 1px; background: var(--border); margin-top: 30px; }

.payment-note {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  margin: 38px auto 0; max-width: 500px; text-align: center;
  font-size: 0.88rem; color: var(--text-dim); background: rgba(124,92,255,0.06);
  border: 1px solid rgba(124,92,255,0.2); padding: 14px 20px; border-radius: 999px;
}
.payment-note svg { color: var(--accent); width: 17px; height: 17px; }

/* Contact ------------------------------------------------------------------ */
.contact-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.contact-form {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.01));
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 40px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dim); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; color: var(--text); transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); background: rgba(124,92,255,0.05);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a5a5bd' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
/* Native <option> popups ignore our dark background on some browsers/OSes
   (notably Windows Chrome/Edge) and fall back to a white popup — so option
   text must stay dark/high-contrast regardless of what background we ask for. */
.form-group select option { background-color: #ffffff; color: #14141f; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-msg { font-size: 0.88rem; padding: 0; min-height: 0; border-radius: 10px; transition: all 0.25s var(--ease); overflow: hidden; }
.form-msg:not(:empty) { padding: 12px 16px; min-height: auto; margin-bottom: 16px; }
.form-msg.success { background: rgba(40, 200, 100, 0.1); border: 1px solid rgba(40, 200, 100, 0.3); color: #6fe3a0; }
.form-msg.error { background: rgba(255, 90, 90, 0.1); border: 1px solid rgba(255, 90, 90, 0.3); color: #ff9c9c; }

.btn[disabled] { opacity: 0.7; pointer-events: none; }

.contact-side { display: flex; flex-direction: column; gap: 24px; }
.contact-info-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.contact-info-card h4 { font-size: 1rem; margin-bottom: 16px; }
.contact-info-row { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; color: var(--text-dim); margin-bottom: 12px; }
.contact-info-row:last-child { margin-bottom: 0; }
.contact-info-row svg { color: var(--accent-3); width: 18px; height: 18px; }

.contact-visual { position: relative; height: 220px; display: flex; align-items: center; justify-content: center; }
.orbit-ring { position: absolute; border: 1px dashed var(--border); border-radius: 50%; width: 160px; height: 160px; animation: spin 16s linear infinite; }
.orbit-ring-2 { width: 210px; height: 210px; animation-duration: 26s; animation-direction: reverse; border-style: solid; opacity: 0.5; }
@keyframes spin { to { transform: rotate(360deg); } }
.orbit-core {
  width: 64px; height: 64px; border-radius: 50%; background: var(--gradient);
  display: flex; align-items: center; justify-content: center; font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; font-size: 1.4rem; color: #0a0a12; box-shadow: 0 0 50px rgba(124,92,255,0.4);
}

/* Footer -------------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 0; margin-top: 40px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 0.9rem; color: var(--text); margin-bottom: 6px; }
.footer-col a, .footer-note { color: var(--text-dim); font-size: 0.9rem; }
.footer-col a:hover { color: var(--accent-3); }
.footer-brand p { font-size: 0.88rem; max-width: 280px; }
.footer-bottom {
  border-top: 1px solid var(--border); padding: 20px 24px; text-align: center;
  font-size: 0.82rem; color: var(--text-dimmer);
}

/* Back to top --------------------------------------------------------------- */
.back-to-top {
  position: fixed; bottom: 26px; right: 26px; width: 46px; height: 46px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text);
  display: flex; align-items: center; justify-content: center; z-index: 90;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: all 0.3s var(--ease); box-shadow: var(--shadow);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { border-color: var(--accent-3); color: var(--accent-3); transform: translateY(-3px); }

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

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }

  .main-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(300px, 80vw);
    background: var(--surface); border-left: 1px solid var(--border);
    flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 8px; padding: 40px; z-index: 150;
    transform: translateX(100%); transition: transform 0.35s var(--ease);
  }
  .main-nav.open { display: flex; transform: translateX(0); }
  .main-nav a { width: 100%; padding: 12px 0; font-size: 1.05rem; }
  .nav-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 140;
    opacity: 0; visibility: hidden; transition: opacity 0.3s;
    backdrop-filter: blur(2px);
  }
  .nav-overlay.open { opacity: 1; visibility: visible; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin: 0 auto; }
  .hero-content { text-align: center; }
  .hero-actions, .hero-chips { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }

  .portfolio-showcase { grid-template-columns: 1fr; }
  .contact-wrap { grid-template-columns: 1fr; }
  .contact-visual { display: none; }
}

@media (max-width: 680px) {
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .fine-print-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .process-steps { flex-direction: column; align-items: center; gap: 26px; }
  .process-connector { display: none; }
  .process-step { max-width: 300px; }
  .float-card { display: none; }
  .header-inner { gap: 12px; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .hero-title { font-size: clamp(1.9rem, 9vw, 2.4rem); }
  .btn-lg { padding: 13px 22px; }
}

/* Reduced motion ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}
