/* ============================================
   WebOptima — Landing & Auth Stylesheet
   Black & White Editorial Design System
   ============================================ */

:root {
  --bg: #FFFFFF;
  --text: #0A0A0A;
  --dark: #111111;
  --light: #F5F5F5;
  --border: #E0E0E0;
  --gray: #6E6E6E;
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
  --font-head: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

html { scroll-behavior: auto; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; border: none; background: none; }

input, select, textarea { font-family: inherit; font-size: 1rem; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 32px;
}

/* ============ Custom Cursor ============ */
.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--text);
  pointer-events: none;
  z-index: 9999;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  transition: width 0.25s var(--ease), height 0.25s var(--ease), background 0.25s var(--ease);
}
.cursor-dot.hovered {
  width: 48px;
  height: 48px;
  background: var(--text);
}
@media (max-width: 1024px), (hover: none) {
  .cursor-dot { display: none; }
}

/* ============ Page Transition Overlay ============ */
.page-transition {
  position: fixed;
  inset: 0;
  background: #0A0A0A;
  z-index: 10000;
  transform: translateY(100%);
  pointer-events: none;
}

/* ============ Buttons ============ */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  overflow: hidden;
  border: 2px solid var(--text);
  border-radius: 100px;
  transition: color 0.3s var(--ease);
  z-index: 1;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
  z-index: -1;
}
.btn:hover::before { transform: scaleX(1); }

.btn-filled {
  background: var(--text);
  color: var(--bg);
}
.btn-filled::before { background: var(--bg); }
.btn-filled:hover { color: var(--text); }

.btn-outline {
  background: transparent;
  color: var(--text);
}
.btn-outline::before { background: var(--text); }
.btn-outline:hover { color: var(--bg); }

/* white variants used on dark backgrounds */
.btn-white-outline {
  border-color: #fff;
  color: #fff;
}
.btn-white-outline::before { background: #fff; }
.btn-white-outline:hover { color: #0A0A0A; }

.btn-white-filled {
  background: #fff;
  color: #0A0A0A;
  border-color: #fff;
}
.btn-white-filled::before { background: #0A0A0A; }
.btn-white-filled:hover { color: #fff; }

.btn-sm { padding: 10px 22px; font-size: 0.8rem; }

/* ============ Navbar ============ */
.navbar {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  max-width: 1400px;
  margin: 0 auto;
  z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.05);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease), top 0.4s var(--ease), max-width 0.4s var(--ease);
}
.navbar.scrolled {
  border-color: var(--text);
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  background: rgba(255,255,255,0.92);
}
.navbar.compact {
  top: 10px;
  max-width: 1100px;
}
.navbar.compact .navbar-inner {
  padding: 10px 24px;
}
.navbar.compact .logo {
  font-size: 1.25rem;
}

.scroll-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  overflow: hidden;
  border-radius: 0 0 20px 20px;
}
.scroll-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--text);
  transform-origin: left;
  will-change: width;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  max-width: 1440px;
  margin: 0 auto;
  transition: padding 0.4s var(--ease);
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  transition: font-size 0.4s var(--ease);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--text);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-head);
}
.lang-switch button {
  padding: 4px 8px;
  border-radius: 10px;
  color: var(--gray);
  transition: color 0.2s, background 0.2s;
}
.lang-switch button.active {
  color: var(--text);
  background: var(--light);
}
.lang-switch button:hover { color: var(--text); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  z-index: 1100;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  background: #0A0A0A;
  color: #fff;
  z-index: 1050;
  transform: translateX(100%);
  transition: transform 0.6s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 48px;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.mobile-menu nav a {
  font-family: var(--font-head);
  font-size: 2.2rem;
  font-weight: 700;
}
.mobile-menu .mobile-actions {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu .lang-switch button { color: rgba(255,255,255,0.5); }
.mobile-menu .lang-switch button.active { color: #fff; background: rgba(255,255,255,0.1); }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  background: #0A0A0A;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 100px;
}
.hero-bg {
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,0.08), transparent 60%);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 32px;
  max-width: 1320px;
  margin: 0 auto;
  width: 100%;
}
.hero-overline {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 32px;
}
.hero-title {
  font-size: clamp(48px, 9vw, 120px);
  line-height: 1.02;
  font-weight: 700;
  margin-bottom: 32px;
}
.hero-title .word {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.hero-title .word span {
  display: inline-block;
  transform: translateY(110%);
}
.hero-subtitle {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  color: rgba(255,255,255,0.65);
  max-width: 620px;
  margin-bottom: 48px;
}
.hero-ctas {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 80px;
}

.ticker-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  overflow: hidden;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 20px 0;
  background: rgba(255,255,255,0.03);
}
.ticker-wrap::before,
.ticker-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.ticker-wrap::before {
  left: 0;
  background: linear-gradient(to right, #0A0A0A, transparent);
}
.ticker-wrap::after {
  right: 0;
  background: linear-gradient(to left, #0A0A0A, transparent);
}
.ticker-wrap:hover .ticker { animation-play-state: paused; }
.ticker {
  display: flex;
  white-space: nowrap;
  animation: ticker-scroll 36s linear infinite;
  width: max-content;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}
.ticker span {
  font-family: var(--font-head);
  font-size: clamp(0.78rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255,255,255,0.8);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  flex-shrink: 0;
}
.ticker span em {
  font-style: normal;
  color: rgba(255,255,255,0.3);
  margin: 0 18px;
  font-size: 0.6em;
  line-height: 1;
  flex-shrink: 0;
}
@keyframes ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@media (max-width: 700px) {
  .ticker-wrap { padding: 16px 0; }
  .ticker-wrap::before,
  .ticker-wrap::after { width: 32px; }
  .ticker { animation-duration: 28s; }
  .ticker span { font-size: clamp(0.72rem, 3.5vw, 0.9rem); }
  .ticker span em { margin: 0 12px; }
}

/* ============ Section Heading ============ */
.section-heading {
  position: relative;
  margin-bottom: 64px;
  overflow: hidden;
}
.section-heading h2 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  position: relative;
}
.section-heading .reveal-bar {
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: translateX(0);
}
.section-heading.light h2 { color: #fff; }
.section-heading.light .reveal-bar { background: #fff; }

.section-label {
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 16px;
  display: block;
}

/* ============ Stats Section ============ */
.stats {
  padding: 120px 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.stat-item { text-align: left; }
.stat-number {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  margin-top: 12px;
  font-size: 1rem;
  color: var(--gray);
  font-weight: 500;
}

/* ============ Services ============ */
.services { background: var(--bg); }
.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding: 64px 32px;
  background: var(--bg);
  color: var(--text);
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
  cursor: pointer;
  overflow: hidden;
  position: relative;
}
.service-row.invert {
  background: var(--text);
  color: var(--bg);
}
.service-row-left {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 720px;
}
.service-number {
  font-family: var(--font-head);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray);
  padding-top: 8px;
  min-width: 50px;
}
.service-row.invert .service-number { color: rgba(255,255,255,0.5); }
.service-info h3 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin-bottom: 12px;
}
.service-info p {
  color: var(--gray);
  margin-bottom: 16px;
  max-width: 520px;
}
.service-row.invert .service-info p { color: rgba(255,255,255,0.6); }
.service-price {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.1rem;
}
.service-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
}
.service-icon svg {
  width: clamp(60px, 10vw, 140px);
  height: clamp(60px, 10vw, 140px);
  stroke-width: 1;
}

/* ============ Portfolio ============ */
.portfolio {
  background: #0A0A0A;
  color: #fff;
  padding: 120px 0;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.portfolio-grid .card-wrap:nth-child(2),
.portfolio-grid .card-wrap:nth-child(5) {
  margin-top: 40px;
}
.portfolio-card {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/5;
  color: inherit;
}
.portfolio-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.portfolio-card:hover img { transform: scale(1.06); }
.portfolio-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 28px;
  background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
  transform: translateY(100%);
  transition: transform 0.5s var(--ease);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.portfolio-card:hover .portfolio-overlay { transform: translateY(0); }
.portfolio-overlay h4 {
  font-size: 1.3rem;
  margin-bottom: 6px;
}
.portfolio-overlay span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.portfolio-cta { text-align: center; }

/* ============ Why Section ============ */
.why-section {
  background: var(--light);
  overflow: hidden;
}
.why-pin {
  height: 100vh;
  display: flex;
  align-items: center;
}
.why-track {
  display: flex;
  gap: 32px;
  padding: 0 32px;
  will-change: transform;
}
.why-card {
  flex: 0 0 min(80vw, 480px);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 56px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 460px;
  justify-content: flex-end;
}
.why-card svg {
  width: 56px;
  height: 56px;
  stroke-width: 1.4;
}
.why-card h3 { font-size: 1.8rem; }
.why-card p { color: var(--gray); }

@media (max-width: 900px) {
  /* overflow:visible needed so position:sticky on cards works */
  .why-section { padding: 60px 0 40px; overflow: visible; }
  .why-pin { height: auto; overflow: visible; }
  .why-track {
    flex-direction: column;
    transform: none !important;
    padding: 24px 20px 48px;
    overflow: visible;
    gap: 0;
  }
  .why-card {
    position: sticky;
    flex: 0 0 auto;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 180px;
    padding: 32px 24px;
    justify-content: flex-start;
    border-radius: 20px;
    background: var(--bg);
    box-shadow: 0 6px 28px rgba(0,0,0,0.09);
    margin-bottom: 72px;
  }
  .why-card:last-child { margin-bottom: 40px; }
  /* Each card sticks slightly lower than the previous → visible tab stack */
  .why-card:nth-child(1) { top: 76px; z-index: 1; }
  .why-card:nth-child(2) { top: 84px; z-index: 2; }
  .why-card:nth-child(3) { top: 92px; z-index: 3; }
  .why-card:nth-child(4) { top: 100px; z-index: 4; }
}

/* ============ Testimonials ============ */
.testimonials {
  background: var(--bg);
  padding: 120px 0;
  text-align: center;
  position: relative;
}
.testimonial-quote-mark {
  font-family: var(--font-head);
  font-size: clamp(8rem, 18vw, 14rem);
  line-height: 0.5;
  color: var(--border);
  font-weight: 700;
  margin-bottom: -40px;
}
.testimonial-slider {
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  min-height: 260px;
}
.testimonial-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}
.testimonial-slide.active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
}
.testimonial-text {
  font-family: var(--font-head);
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 500;
  margin-bottom: 32px;
  line-height: 1.4;
}
.testimonial-stars {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--text);
}
.testimonial-stars svg { width: 18px; height: 18px; fill: var(--text); }
.testimonial-author { font-weight: 700; }
.testimonial-business { color: var(--gray); font-size: 0.9rem; }
.testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
.testimonial-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.testimonial-dots button.active {
  background: var(--text);
  transform: scale(1.3);
}

/* ============ Pricing ============ */
.pricing {
  background: var(--bg);
  padding: 120px 0;
}
.pricing-note {
  text-align: center;
  color: var(--gray);
  font-size: 0.9rem;
  margin-bottom: 48px;
  margin-top: -32px;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-separate {
  text-align: center;
  color: var(--gray);
  font-size: 0.95rem;
  margin-top: 40px;
}
.pricing-separate a {
  color: var(--text);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--border);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.3s var(--ease), color 0.3s var(--ease);
}
.pricing-separate a:hover { text-decoration-color: var(--text); }
.pricing-card {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 36px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.08);
}
.pricing-card.featured {
  background: var(--text);
  color: var(--bg);
  transform: scale(1.04);
}
.pricing-card.featured:hover { transform: scale(1.04) translateY(-8px); }
.pricing-name { font-size: 1.6rem; }
.pricing-price {
  font-family: var(--font-head);
  font-size: 3rem;
  font-weight: 700;
}
.pricing-price .pricing-period { font-size: 1rem; font-weight: 500; color: var(--gray); }
.pricing-card.featured .pricing-price .pricing-period { color: rgba(255,255,255,0.6); }
.pricing-features {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-grow: 1;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
}
.pricing-features svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ============ Contact ============ */
.contact {
  background: #0A0A0A;
  color: #fff;
  padding: 120px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}
.contact-info h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 32px;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}
.contact-item svg {
  width: 24px; height: 24px;
  flex-shrink: 0;
  margin-top: 4px;
}
.contact-item h4 { font-size: 1rem; margin-bottom: 4px; }
.contact-item p { color: rgba(255,255,255,0.6); font-size: 0.95rem; }

.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-row { display: flex; gap: 20px; }
.form-row > * { flex: 1; }
.form-group { display: flex; flex-direction: column; gap: 8px; }
.form-group label { font-size: 0.85rem; color: rgba(255,255,255,0.6); }
.form-group input,
.form-group select,
.form-group textarea {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  padding: 14px 16px;
  color: #fff;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.form-group select { color: #fff; }
.form-group select option { color: #0A0A0A; }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #fff;
  background: rgba(255,255,255,0.05);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-success {
  background: #fff;
  color: #0A0A0A;
  padding: 16px 20px;
  border-radius: 12px;
  font-weight: 600;
  display: none;
  align-items: center;
  gap: 10px;
}
.form-success.show { display: flex; }

/* ============ Footer ============ */
.footer {
  background: #0A0A0A;
  color: #fff;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 64px;
}
.footer-nav {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-nav a { font-size: 0.95rem; color: rgba(255,255,255,0.7); }
.footer-nav a:hover { color: #fff; }
.footer-tagline {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  text-align: center;
  padding: 48px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease);
}
.footer-social a:hover { background: #fff; color: #0A0A0A; border-color: #fff; }
.footer-social svg { width: 18px; height: 18px; }

/* ============ Auth Pages ============ */
.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-brand {
  background: #0A0A0A;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 56px;
}
.auth-brand .logo { font-size: 2rem; }
.auth-brand-content h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  margin-bottom: 24px;
}
.auth-brand-content p {
  color: rgba(255,255,255,0.6);
  font-size: 1.1rem;
  max-width: 440px;
}
.auth-brand-footer {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
}
.auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px;
}
.auth-form-wrap {
  width: 100%;
  max-width: 420px;
}
.auth-form-wrap h2 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}
.auth-form-wrap > p {
  color: var(--gray);
  margin-bottom: 32px;
}
.auth-form { display: flex; flex-direction: column; gap: 20px; }
.auth-form .form-group label {
  font-size: 0.85rem;
  color: var(--gray);
  font-weight: 500;
}
.auth-form .form-group input,
.auth-form .form-group select {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.auth-form .form-group input:focus,
.auth-form .form-group select:focus {
  outline: none;
  border-color: var(--text);
  box-shadow: 0 0 0 3px rgba(10,10,10,0.06);
}
.auth-form .form-row { display: flex; gap: 16px; }
.auth-form .form-row > * { flex: 1; }
.auth-links {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  margin-top: 8px;
}
.auth-links a { text-decoration: underline; }
.auth-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--gray);
}
.auth-checkbox input { margin-top: 4px; }
.auth-error {
  color: #B00020;
  font-size: 0.85rem;
  display: none;
}
.auth-error.show { display: block; }
.auth-success-msg {
  background: var(--light);
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 0.9rem;
  display: none;
  align-items: center;
  gap: 10px;
}
.auth-success-msg.show { display: flex; }
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 13px 20px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  color: var(--text);
}
.btn-google:hover {
  border-color: #4285F4;
  box-shadow: 0 4px 16px rgba(66,133,244,0.15);
}
.btn-google:disabled { opacity: 0.6; cursor: not-allowed; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--gray);
  font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-form-wrap .btn { width: 100%; }

@media (max-width: 860px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-brand { min-height: 280px; }
  .auth-form-side { padding: 40px 24px; }
}

/* ============ Responsive ============ */
@media (max-width: 1024px) {
  .nav-links, .nav-right .lang-switch, .nav-right .btn { display: none; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid .card-wrap:nth-child(2),
  .portfolio-grid .card-wrap:nth-child(5) { margin-top: 0; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .pricing-card.featured { transform: none; order: -1; }
  .pricing-card.featured:hover { transform: translateY(-8px); }
  .contact-grid { grid-template-columns: 1fr; gap: 56px; }
  /* Section padding reduced on tablet */
  .stats, .services, .testimonials, .pricing { padding: 80px 0; }
  .contact { padding: 80px 0; }
  .why-section { padding: 60px 0; }
  /* Hero */
  .hero { padding-top: 90px; }
  .hero-content { padding: 0 24px; }
  .hero-ctas { margin-bottom: 48px; }
  /* Section headings */
  .section-heading { margin-bottom: 48px; }
  /* Portfolio */
  .portfolio-cta { text-align: center; }
  /* Footer */
  .footer-nav { gap: 20px; flex-wrap: wrap; }
}

@media (max-width: 700px) {
  .service-row { flex-direction: column; gap: 32px; align-items: flex-start; padding: 32px 20px; border-radius: 20px; border: 1px solid var(--border); border-bottom: none; }
  .service-row:last-of-type { border-bottom: 1px solid var(--border); }
  .service-row-left { gap: 16px; }
  .service-icon { align-self: flex-start; }
  .service-icon svg { width: 56px; height: 56px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-item { background: var(--light); border-radius: 20px; padding: 28px 20px; }
  .portfolio-grid { grid-template-columns: 1fr; }
  .portfolio-card { border-radius: 20px; }
  .pricing-card { border-radius: 24px; }
  .form-row { flex-direction: column; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  /* Container */
  .container { padding: 0 20px; }
  /* Hero */
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .hero-overline { font-size: 0.75rem; margin-bottom: 20px; }
  /* Sections */
  .stats, .services, .testimonials, .pricing { padding: 64px 0; }
  .contact { padding: 64px 0; }
  /* Section headings */
  .section-heading { margin-bottom: 36px; }
  /* Services */
  .service-row { padding: 36px 0; }
  .service-price { font-size: 1.4rem; }
  /* Footer */
  .footer-top { flex-direction: column; gap: 24px; }
  .footer-nav { flex-direction: column; gap: 14px; }
  .footer-tagline { font-size: clamp(1.4rem, 6vw, 2rem); padding: 32px 0; }
  /* Pricing */
  .pricing-grid { max-width: 100%; }
  .pricing-card { padding: 32px 24px; }
  /* Why section */
  .why-card h3 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  /* Container */
  .container { padding: 0 16px; }
  /* Navbar floating */
  .navbar { top: 10px; left: 10px; right: 10px; border-radius: 16px; }
  .navbar-inner { padding: 12px 18px; }
  .logo { font-size: 1.2rem; }
  /* Hero */
  .hero { padding-top: 80px; }
  .hero-overline { font-size: 0.7rem; letter-spacing: 0.15em; }
  .hero-ctas .btn { padding: 14px 24px; font-size: 0.85rem; border-radius: 16px; }
  .hero-subtitle { margin-bottom: 36px; }
  /* Stats */
  .stat-number { font-size: clamp(2rem, 9vw, 3rem); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .stat-item { border-radius: 16px; padding: 24px 16px; }
  /* Services */
  .service-row { padding: 28px 0; gap: 20px; }
  .service-name { font-size: 1.3rem; }
  .service-desc { font-size: 0.9rem; }
  .service-price { font-size: 1.2rem; }
  /* Portfolio */
  .portfolio { padding: 64px 0; }
  /* Testimonials */
  .testimonial-quote-mark { font-size: clamp(6rem, 18vw, 10rem); }
  .testimonial-slider { min-height: 300px; }
  /* Pricing */
  .pricing { padding: 64px 0; }
  .pricing-card { padding: 28px 20px; gap: 20px; }
  .pricing-name { font-size: 1.3rem; }
  .pricing-price { font-size: 2.2rem; }
  /* Contact */
  .contact { padding: 64px 0; }
  .contact-grid { gap: 40px; }
  /* Auth */
  .auth-brand { min-height: 200px; padding: 32px 24px; }
  .auth-brand h1 { font-size: clamp(1.6rem, 7vw, 2.5rem); }
  .auth-brand p { display: none; }
  .auth-form-side { padding: 32px 20px; }
  .auth-form-wrap h2 { font-size: 1.6rem; }
  /* Buttons */
  .btn { padding: 13px 24px; }
}

/* ============ Reduced Motion ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title .word span { transform: translateY(0); }
}

/* ============ WhatsApp Floating Button ============ */
.wa-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  padding: 12px 20px 12px 16px;
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 24px rgba(37,211,102,0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, padding 0.3s ease;
  overflow: hidden;
  max-width: 220px;
}
.wa-float svg { flex-shrink: 0; width: 22px; height: 22px; fill: #fff; }
.wa-float span {
  white-space: nowrap;
  transition: opacity 0.2s ease, max-width 0.3s ease;
  max-width: 140px;
  opacity: 1;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(37,211,102,0.45);
}
@media (max-width: 600px) {
  .wa-float { padding: 12px; border-radius: 50%; }
  .wa-float span { display: none; }
}

/* ============ Cookie Banner ============ */
.cookie-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(17,17,17,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16,1,0.3,1);
}
.cookie-bar.show { transform: translateY(0); }
.cookie-bar p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
  max-width: 680px;
}
.cookie-bar p a { color: rgba(255,255,255,0.85); text-decoration: underline; }
.cookie-bar-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-bar-actions button {
  padding: 9px 20px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: opacity 0.15s;
}
.cookie-bar-actions button:hover { opacity: 0.85; }
.cookie-accept { background: #fff; color: #0a0a0a; }
.cookie-reject { background: transparent; color: rgba(255,255,255,0.5); border: 1px solid rgba(255,255,255,0.15) !important; }
@media (max-width: 640px) {
  .cookie-bar { flex-direction: column; align-items: flex-start; padding: 16px 18px 24px; }
  .cookie-bar-actions { width: 100%; }
  .cookie-bar-actions button { flex: 1; }
}
