/* ─── RESET & BASE ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #09090f;
  --surface:    #111120;
  --surface2:   #191930;
  --border:     rgba(255,255,255,0.07);
  --accent:     #6c86ff;
  --accent-cta: #3f5cd8;
  --accent2:    #a78bfa;
  --text:       #e8e8f0;
  --muted:      #9da5c9;
  --radius:     14px;
  --font-head:  'Syne', sans-serif;
  --font-body:  'DM Sans', sans-serif;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

/* ─── SCROLLBAR ─── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 3px; }

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 5vw;
  background: rgba(9,9,15,0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}

.nav-logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.5px;
  color: #fff;
  text-decoration: none;
}
.nav-logo span { color: var(--accent); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent-cta);
  color: #fff !important;
  padding: 0.5rem 1.2rem;
  border-radius: 8px;
  font-weight: 500 !important;
  transition: opacity .2s !important;
}
.nav-cta:hover { opacity: 0.85; }

/* ─── LANGUAGE SWITCHER ─── */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang-btn:hover {
  border-color: rgba(255,255,255,0.2);
  color: var(--text);
}
.lang-btn svg { flex-shrink: 0; }

.lang-chevron {
  transition: transform .2s;
}
.lang-switcher.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.35rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 110;
}
.lang-switcher.open .lang-dropdown {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: none;
  border: none;
  padding: 0.5rem 0.75rem;
  border-radius: 7px;
  color: var(--muted);
  font-family: var(--font-body);
  font-size: 0.85rem;
  cursor: pointer;
  transition: background .15s, color .15s;
}
.lang-option:hover {
  background: var(--surface2);
  color: var(--text);
}
.lang-option.active {
  color: var(--accent);
}
.lang-code {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .3s;
}

/* ─── HERO ─── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 5vw 6rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,110,247,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 80%, rgba(167,139,250,0.12) 0%, transparent 60%),
    url('images/hero-bg.jpg') center/cover no-repeat;
  filter: brightness(0.25);
  z-index: 0;
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  z-index: 1;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(79,110,247,0.15);
  border: 1px solid rgba(79,110,247,0.3);
  color: var(--accent2);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

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

h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -2px;
  color: #fff;
  margin-bottom: 1.2rem;
}

h1 .gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--accent-cta);
  color: #fff;
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 0 30px rgba(79,110,247,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(79,110,247,0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 0.85rem 2rem;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid var(--border);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: var(--surface); }

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, transparent, var(--muted));
  animation: scrollDown 2s infinite;
}
@keyframes scrollDown {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ─── SECTION SHARED ─── */
section { padding: 6rem 5vw; }

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  color: #fff;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.section-desc {
  color: var(--muted);
  max-width: 560px;
  font-weight: 300;
  font-size: 1.05rem;
}

.section-header { margin-bottom: 3.5rem; }

/* ─── SMART HOME ─── */
#smarthome {
  background: var(--surface);
  position: relative;
  overflow: hidden;
}

#smarthome::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(167,139,250,0.08) 0%, transparent 70%);
  pointer-events: none;
}

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

.smarthome-features {
  display: grid;
  gap: 1.2rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color .25s, transform .25s;
}
.feature-card:hover {
  border-color: rgba(79,110,247,0.3);
  transform: translateX(4px);
}

.feature-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: rgba(79,110,247,0.1);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  margin-bottom: 0.25rem;
}

.feature-text {
  font-size: 0.875rem;
  color: var(--muted);
}

.smarthome-visual {
  position: relative;
}

.smarthome-mockup {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}

.smarthome-mockup img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.smarthome-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(79,110,247,0.15) 0%, transparent 60%);
}

/* ─── PROJECTS (shared) ─── */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: border-color .25s, transform .25s, box-shadow .25s;
  position: relative;
}
.project-card:hover {
  border-color: rgba(79,110,247,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4);
}

.card-image {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  position: relative;
}
.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.project-card:hover .card-image img { transform: scale(1.05); }

.card-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(9,9,15,0.8));
}

.card-body {
  padding: 1.2rem;
}

.card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  margin-bottom: 0.75rem;
}
.status-live {
  background: rgba(16,185,129,0.12);
  color: #34d399;
  border: 1px solid rgba(52,211,153,0.2);
}
.status-live::before {
  content: '';
  width: 5px; height: 5px;
  background: #34d399;
  border-radius: 50%;
  animation: pulse 2s infinite;
}
.status-progress {
  background: rgba(245,158,11,0.12);
  color: #fbbf24;
  border: 1px solid rgba(251,191,36,0.2);
}
.status-progress::before {
  content: '◐';
  font-size: 0.6rem;
}

.card-title {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.2rem;
}

.card-subtitle {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ─── SECTIONS BG VARIATION ─── */
#mobile { background: var(--bg); }
#web    { background: var(--surface); }

/* ─── CONTACT ─── */
#contact {
  background: var(--bg);
  position: relative;
}

#contact::before {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, rgba(79,110,247,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

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

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-icon {
  width: 40px; height: 40px;
  background: rgba(79,110,247,0.1);
  border: 1px solid rgba(79,110,247,0.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.2rem;
}

.contact-item-value {
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.contact-item-value:hover { color: var(--accent); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

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

.form-group label {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.form-group input,
.form-group textarea,
.form-group select {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
  transition: border-color .2s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--muted); }

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

.form-group select { cursor: pointer; }
.form-group select option { background: var(--surface2); }

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-submit {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  align-items: center;
}

.form-note {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─── MODAL ─── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-backdrop.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(20px) scale(0.97);
  transition: transform .25s;
  position: relative;
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
  z-index: 10;
}
.modal-close:hover { background: rgba(0,0,0,0.7); }

.modal-hero {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--surface2);
  position: relative;
}

.modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-hero-badge {
  position: absolute;
  bottom: 1rem;
  left: 1.2rem;
}

.modal-hero-badge .card-status {
  background: var(--surface);
  margin-bottom: 0;
}

.modal-body { padding: 1.8rem; }

.modal-screenshots {
  margin-top: 1.5rem;
}

.screenshots-track {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.5rem;
}

.screenshots-track::-webkit-scrollbar { height: 4px; }
.screenshots-track::-webkit-scrollbar-track { background: transparent; }
.screenshots-track::-webkit-scrollbar-thumb { background: var(--surface2); border-radius: 2px; }

.screenshots-track img {
  flex-shrink: 0;
  height: 380px;
  width: auto;
  border-radius: 12px;
  object-fit: cover;
  scroll-snap-align: start;
}

.modal-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 0.3rem;
}

.modal-subtitle {
  color: var(--muted);
  margin-bottom: 1rem;
}

.modal-description {
  color: var(--text);
  font-weight: 300;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  justify-content: center;
}

.store-badge {
  display: inline-block;
  transition: opacity .2s;
}
.store-badge:hover { opacity: 0.8; }

/* ─── FOOTER ─── */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 5vw;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-copy {
  font-size: 0.85rem;
  color: var(--muted);
}

.footer-complaints {
  display: flex;
  justify-content: center;
  flex: 1;
}
.footer-complaints img {
  height: 50px;
  width: auto;
  opacity: 0.85;
  transition: opacity .2s;
}
.footer-complaints a:hover img { opacity: 1; }

.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--text); }

.footer-cookie-btn {
  color: var(--muted);
  font-size: 0.85rem;
  text-decoration: none;
  transition: color .2s;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
}
.footer-cookie-btn:hover { color: var(--text); }

/* ─── COOKIE BANNER ─── */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 2200;
  background: rgba(17, 17, 32, 0.98);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
  transform: translateY(14px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.cookie-banner.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.cookie-banner-inner {
  padding: 1rem 1.2rem;
  display: flex;
  gap: 1.2rem;
  justify-content: space-between;
  align-items: flex-end;
}

.cookie-banner-copy h3 {
  font-family: var(--font-head);
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.cookie-banner-copy p {
  color: var(--muted);
  font-size: 0.88rem;
  max-width: 720px;
}

.cookie-preferences {
  margin-top: 0.65rem;
}

.cookie-preferences summary {
  color: var(--text);
  font-size: 0.85rem;
  cursor: pointer;
  user-select: none;
}

.cookie-preferences[open] summary {
  margin-bottom: 0.5rem;
}

.cookie-option label {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.84rem;
  margin: 0.25rem 0;
}

.cookie-option input[type='checkbox'] {
  accent-color: var(--accent);
}

.cookie-banner-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cookie-action {
  padding: 0.62rem 1rem;
  font-size: 0.84rem;
}

/* ─── TOAST ─── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #fff;
  color: #09090f;
  padding: 0.9rem 1.8rem;
  border-radius: 100px;
  font-weight: 500;
  font-size: 0.9rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
  z-index: 2000;
  opacity: 0;
  transition: opacity .3s, transform .3s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ─── LOADING ─── */
.loading-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.skeleton {
  background: var(--surface2);
  border-radius: var(--radius);
  overflow: hidden;
  animation: shimmer 1.5s infinite;
}
.skeleton-img { aspect-ratio: 16/9; background: var(--surface2); }
.skeleton-body { padding: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.skeleton-line { height: 12px; border-radius: 6px; background: var(--border); }
.skeleton-line.short { width: 60%; }
@keyframes shimmer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .hero-bg {
    background:
      radial-gradient(ellipse 80% 60% at 50% 0%, rgba(79,110,247,0.18) 0%, transparent 70%),
      radial-gradient(ellipse 60% 40% at 80% 80%, rgba(167,139,250,0.12) 0%, transparent 60%),
      linear-gradient(180deg, #0f1020 0%, #09090f 100%);
  }
  .smarthome-grid { grid-template-columns: 1fr; }
  .smarthome-visual { order: -1; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .lang-switcher { order: 1; }
  .nav-burger { order: 2; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 65px; left: 0; right: 0;
    background: rgba(9,9,15,0.98);
    padding: 1.5rem 5vw;
    border-bottom: 1px solid var(--border);
    gap: 1rem;
  }
  .form-row { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-banner-actions {
    justify-content: stretch;
  }
  .cookie-action {
    flex: 1 1 100%;
    justify-content: center;
  }
}

@media (hover: none) and (pointer: coarse) {
  .feature-card:hover { transform: none; }
}

@media (max-width: 480px) {
  section { padding: 4rem 5vw; }
  .contact-form { padding: 1.5rem; }
  .modal-body { padding: 1.2rem; }
}

/* ─── PRIVACY POLICY PAGE ─── */
body.privacy-policy-page {
  background: radial-gradient(circle at 85% -10%, rgba(79,110,247,0.18), transparent 45%), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.62;
  padding: 2rem 1rem 3rem;
}

.privacy-policy-page .container {
  max-width: 900px;
  margin: 0 auto;
}

.privacy-policy-page .back-link {
  display: inline-flex;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.9rem;
  transition: color .2s, border-color .2s;
}

.privacy-policy-page .back-link:hover {
  color: var(--text);
  border-color: rgba(255,255,255,0.2);
}

.privacy-policy-page h1 {
  margin: 1rem 0 0.3rem;
  font-size: clamp(1.8rem, 4.5vw, 2.6rem);
  line-height: 1.2;
}

.privacy-policy-page .meta {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.privacy-policy-page .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 1.2rem;
  margin: 0.85rem 0;
}

.privacy-policy-page h2 {
  margin: 0 0 0.55rem;
  font-size: 1.1rem;
  color: #fff;
}

.privacy-policy-page p {
  margin: 0.5rem 0;
}

.privacy-policy-page ul {
  margin: 0.45rem 0 0.4rem 1.1rem;
  padding: 0;
}

.privacy-policy-page li {
  margin: 0.28rem 0;
  color: var(--text);
}

.privacy-policy-page a {
  color: #9cb2ff;
}

.privacy-policy-page .small {
  color: var(--muted);
  font-size: 0.9rem;
}

.privacy-policy-page .highlight {
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
  color: #d8ddff;
}

.privacy-policy-page footer {
  margin-top: 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
}
