/* =============================================
   ADAMY v2 — Design System
   Style: Exaggerated Minimalism (Awwwards)
   ============================================= */

/* 1. Variables */
:root {
  --primary: #000000;
  --accent:  #FF0000;
  --bg:      #FFFFFF;
  --surface: #F5F5F5;
  --grid-color: rgba(65, 105, 225, 0.045);
  --font-main: 'DM Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --ease-expo:   cubic-bezier(0.19, 1, 0.22, 1);
  --ease-smooth: cubic-bezier(0.76, 0, 0.24, 1);
  --nav-h: 72px;
}

/* 2. Base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 80px 80px;
  font-family: var(--font-main);
  color: var(--primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* 3. Typography */
h1 {
  font-weight: 900;
  font-size: clamp(3.5rem, 9.5vw, 13rem);
  line-height: 0.88;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  margin: 0;
}

h2 {
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 5rem);
  text-transform: uppercase;
  border-bottom: 1px solid var(--primary);
  padding-bottom: 20px;
  margin-bottom: 40px;
  line-height: 0.95;
  letter-spacing: -0.03em;
}

p, .body-text {
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
}

.caption {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
}

/* 4. Page Loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.page-loader.is-hidden {
  pointer-events: none;
  animation: loaderFadeOut 0.7s 0.05s var(--ease-expo) forwards;
}

@keyframes loaderFadeOut {
  0%   { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); visibility: hidden; }
}

.loader-inner { text-align: center; }

.loader-text {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  color: rgba(255,255,255,0.9);
  font-weight: 700;
  margin-bottom: 20px;
}

.loader-bar-track {
  width: 100px;
  height: 1px;
  background: rgba(255,255,255,0.15);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.loader-bar {
  position: absolute;
  top: 0; left: 0;
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.72s var(--ease-expo);
}

/* 5. Navbar */
.navbar-adamy {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 0 80px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s, box-shadow 0.4s;
}

.navbar-adamy.is-scrolled {
  border-bottom-color: rgba(0,0,0,0.12);
  box-shadow: 0 1px 0 rgba(0,0,0,0.06);
}

.navbar-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-brand-adamy {
  font-size: 22px;
  letter-spacing: -1.5px;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--primary);
  text-decoration: none;
  line-height: 1;
}
.navbar-brand-adamy:hover { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link-adamy {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 20px;
  font-weight: 600;
  position: relative;
  display: inline-block;
}

.nav-link-adamy::after {
  content: '';
  position: absolute;
  bottom: 0; left: 20px; right: 20px;
  height: 1px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-smooth);
}

.nav-link-adamy:hover::after,
.nav-link-adamy.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  align-items: flex-end;
}

.nav-toggle-line {
  display: block;
  height: 1.5px;
  background: var(--primary);
  transition: transform 0.35s var(--ease-smooth), opacity 0.25s, width 0.3s;
}

.nav-toggle-line:nth-child(1) { width: 24px; }
.nav-toggle-line:nth-child(2) { width: 16px; }
.nav-toggle-line:nth-child(3) { width: 24px; }

.nav-toggle.is-open .nav-toggle-line:nth-child(1) { transform: translateY(6.5px) rotate(45deg); width: 24px; }
.nav-toggle.is-open .nav-toggle-line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open .nav-toggle-line:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); width: 24px; }

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  top: var(--nav-h);
  background: var(--bg);
  z-index: 190;
  padding: 48px 24px;
  display: flex;
  flex-direction: column;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  border-top: 1px solid var(--primary);
  transition: transform 0.5s var(--ease-expo), opacity 0.4s var(--ease-expo);
}

.mobile-nav.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-nav-link {
  font-size: clamp(2.4rem, 10vw, 4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--primary);
  text-decoration: none;
  line-height: 1;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  display: block;
  transform: translateX(-16px);
  opacity: 0;
  transition: transform 0.5s var(--ease-expo), opacity 0.45s, color 0.2s;
}

.mobile-nav.is-open .mobile-nav-link:nth-child(1) { transform: none; opacity: 1; transition-delay: 0.04s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(2) { transform: none; opacity: 1; transition-delay: 0.09s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(3) { transform: none; opacity: 1; transition-delay: 0.14s; }
.mobile-nav.is-open .mobile-nav-link:nth-child(4) { transform: none; opacity: 1; transition-delay: 0.19s; }
.mobile-nav-link:hover { color: var(--accent); }

@media (max-width: 991.98px) {
  .navbar-adamy { padding: 0 24px; }
  .nav-links    { display: none; }
  .nav-toggle   { display: flex; }
}

/* 7. Grid Padding */
.grid-padding { padding: 80px; }

/* 8. Hero Line Reveal */
.hero-line {
  overflow: hidden;
  display: block;
  line-height: 0.88;
  margin-bottom: 0.02em;
}

.hero-line-inner {
  display: block;
  transform: translateY(112%);
  transition: transform 1.1s var(--ease-expo);
}

h1.is-visible .hero-line:nth-child(1) .hero-line-inner { transform: translateY(0); transition-delay: 0s; }
h1.is-visible .hero-line:nth-child(2) .hero-line-inner { transform: translateY(0); transition-delay: 0.11s; }
h1.is-visible .hero-line:nth-child(3) .hero-line-inner { transform: translateY(0); transition-delay: 0.22s; }
h1.is-visible .hero-line:nth-child(4) .hero-line-inner { transform: translateY(0); transition-delay: 0.33s; }

/* Caption fade-in on load */
.hero-caption {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.8s var(--ease-expo) 0.6s, transform 0.8s var(--ease-expo) 0.6s;
}
.hero-caption.is-visible { opacity: 1; transform: none; }

/* 9. Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s var(--ease-expo), transform 0.9s var(--ease-expo);
}
.reveal.from-left { transform: translateX(-30px); }
.reveal.is-visible { opacity: 1; transform: none; }

/* Stagger: children animate with offset */
.stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.75s var(--ease-expo), transform 0.75s var(--ease-expo);
}
.stagger.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0s; }
.stagger.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 0.08s; }
.stagger.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 0.16s; }
.stagger.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 0.24s; }
.stagger.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 0.32s; }
.stagger.is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 0.40s; }

/* 10. Buttons */
.btn-adamy {
  display: inline-block;
  padding: 18px 40px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  border: 1px solid var(--primary);
  background-color: var(--primary);
  color: #fff;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 100%;
  background-position: left center;
  background-repeat: no-repeat;
  transition: background-size 0.48s var(--ease-smooth), color 0.1s;
}
.btn-adamy:hover { background-size: 100% 100%; color: #fff; }

.btn-outline-adamy {
  display: inline-block;
  padding: 18px 40px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  border: 1px solid var(--primary);
  background-color: transparent;
  color: var(--primary);
  background-image: linear-gradient(var(--primary), var(--primary));
  background-size: 0% 100%;
  background-position: left center;
  background-repeat: no-repeat;
  transition: background-size 0.48s var(--ease-smooth), color 0.48s;
}
.btn-outline-adamy:hover { background-size: 100% 100%; color: #fff; }

/* White variants for dark backgrounds */
.btn-adamy-white {
  display: inline-block;
  padding: 18px 40px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  border: 1px solid var(--bg);
  background-color: var(--bg);
  color: var(--primary);
  background-image: linear-gradient(var(--accent), var(--accent));
  background-size: 0% 100%;
  background-position: left center;
  background-repeat: no-repeat;
  transition: background-size 0.48s var(--ease-smooth), color 0.48s;
}
.btn-adamy-white:hover { background-size: 100% 100%; color: #fff; }

.btn-outline-white {
  display: inline-block;
  padding: 18px 40px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  cursor: pointer;
  border-radius: 0;
  border: 1px solid rgba(255,255,255,0.45);
  background-color: transparent;
  color: #fff;
  background-image: linear-gradient(rgba(255,255,255,0.12), rgba(255,255,255,0.12));
  background-size: 0% 100%;
  background-position: left center;
  background-repeat: no-repeat;
  transition: background-size 0.48s var(--ease-smooth), border-color 0.3s;
}
.btn-outline-white:hover { background-size: 100% 100%; border-color: #fff; }

/* 11. Red Block */
.red-block {
  background-color: var(--accent);
  width: 160px;
  height: 160px;
  transition: transform 0.6s var(--ease-expo);
  flex-shrink: 0;
}
.red-block:hover { transform: scale(1.04) rotate(2deg); }

/* 12. Ticker */
.ticker-wrap {
  overflow: hidden;
  background: var(--primary);
  padding: 15px 0;
}

.ticker-track {
  display: flex;
  white-space: nowrap;
  width: max-content;
  animation: ticker 28s linear infinite;
}
.ticker-track:hover { animation-play-state: paused; }

.ticker-item {
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 600;
  padding: 0 36px;
  display: inline-flex;
  align-items: center;
  gap: 36px;
}

.ticker-sep {
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* 13. Service Cards */
.service-card {
  border: 1px solid var(--primary);
  background: var(--surface);
  padding: 40px;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: background 0.5s var(--ease-smooth), transform 0.4s var(--ease-expo), color 0.5s;
}

.service-card::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-smooth);
}

.service-card:hover { background: var(--primary); transform: translateY(-2px); }
.service-card:hover::after { transform: scaleX(1); }
.service-card:hover .service-title,
.service-card:hover .service-desc { color: var(--bg); }
.service-card:hover .service-number span { opacity: 0.5; color: var(--accent); }

.service-number {
  position: absolute;
  top: 16px; right: 20px;
  font-size: 52px;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.07;
  line-height: 1;
  letter-spacing: -0.04em;
  transition: opacity 0.4s, color 0.4s;
}

.service-title {
  font-size: 1.2rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 14px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  transition: color 0.4s;
}

.service-desc {
  font-size: 15px;
  line-height: 1.65;
  opacity: 0.72;
  transition: color 0.4s, opacity 0.4s;
}
.service-card:hover .service-desc { opacity: 0.8; }

/* Service card — deliverables list */
.service-deliverables {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  border-top: 1px solid var(--primary);
  padding-top: 20px;
  transition: border-color 0.5s;
}
.service-deliverables li {
  padding: 7px 0;
  border-bottom: 1px solid rgba(0,0,0,0.07);
  font-size: 0.875rem;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  transition: border-color 0.5s, color 0.4s;
}
.service-deliverables li:last-child { border-bottom: none; }
.service-deliverables li .arrow { color: var(--accent); font-weight: 700; flex-shrink: 0; }

/* Service card — process section */
.service-process {
  border-top: 1px solid var(--primary);
  padding-top: 20px;
  transition: border-color 0.5s;
}
.service-process-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0.4;
  transition: color 0.4s;
}
.service-process-steps { display: flex; flex-direction: column; gap: 10px; }
.service-process-step { display: flex; gap: 12px; align-items: flex-start; }
.service-process-step .step-num {
  width: 22px; height: 22px;
  background: var(--primary); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
  transition: background 0.4s;
}
.service-process-step .step-text {
  font-size: 0.8rem; line-height: 1.5; padding-top: 2px;
  transition: color 0.4s;
}
.service-process-badge {
  margin-top: 16px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}

/* Hover states for new elements */
.service-card:hover .service-deliverables { border-top-color: rgba(255,255,255,0.15); }
.service-card:hover .service-deliverables li { border-bottom-color: rgba(255,255,255,0.12); color: var(--bg); }
.service-card:hover .service-process { border-top-color: rgba(255,255,255,0.15); }
.service-card:hover .service-process-label { color: var(--bg); }
.service-card:hover .service-process-step .step-text { color: var(--bg); }
.service-card:hover .service-process-step .step-num { background: rgba(255,255,255,0.18); }

/* 14. Value Items */
.value-item {
  border: 1px solid var(--primary);
  padding: 48px 24px;
  text-align: center;
  background: var(--surface);
  transition: background 0.5s var(--ease-smooth), transform 0.4s var(--ease-expo);
  position: relative;
}

.value-item:hover { background: var(--primary); transform: translateY(-2px); }
.value-item:hover .value-number,
.value-item:hover .value-label { color: var(--bg); }

.value-number {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  transition: color 0.4s;
}

.value-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  transition: color 0.4s;
}

/* 15. CTA Banner (dark) */
.cta-banner {
  background: var(--primary);
  padding: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.cta-banner h2 {
  color: var(--bg);
  border-bottom-color: rgba(255,255,255,0.18);
  margin-bottom: 16px;
}

.cta-banner .body-text {
  color: rgba(255,255,255,0.62);
  margin: 0;
}

.cta-banner-content { flex: 1; min-width: 0; }
.cta-banner-action  { flex-shrink: 0; }

/* 16. Form */
.form-adamy input,
.form-adamy select,
.form-adamy textarea {
  border: none;
  border-bottom: 1px solid rgba(0,0,0,0.2);
  border-radius: 0;
  padding: 12px 0;
  background: transparent;
  font-family: var(--font-main);
  margin-bottom: 28px;
  width: 100%;
  font-size: 16px;
  color: var(--primary);
  outline: none;
  transition: border-color 0.35s;
  appearance: none;
}

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

.form-adamy input::placeholder,
.form-adamy textarea::placeholder { color: rgba(0,0,0,0.3); }

.form-adamy select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  padding-right: 20px;
}

.form-adamy label,
.form-adamy .d-block.mb-2.caption {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  color: rgba(0,0,0,0.45);
  display: block;
  margin-bottom: 6px;
}

/* 17. Contact Info */
.contact-info-item {
  padding: 24px 0;
  border-bottom: 1px solid rgba(0,0,0,0.12);
  transition: border-color 0.3s;
}
.contact-info-item:first-child { border-top: 1px solid rgba(0,0,0,0.12); }
.contact-info-item:hover { border-bottom-color: var(--accent); }

/* 18. Footer */
.footer-adamy {
  background: var(--primary);
  color: var(--bg);
  padding: 80px 80px 40px;
}

.footer-link {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 13px;
  display: block;
  margin-bottom: 10px;
  position: relative;
  padding-bottom: 1px;
  width: fit-content;
  transition: color 0.3s;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-smooth);
}

.footer-link:hover { color: #fff; }
.footer-link:hover::after { transform: scaleX(1); transform-origin: left; }

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.1);
  margin: 48px 0 24px;
}

/* 19. Intro section visual */
.intro-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* 20. Bg utilities */
.bg-surface { background-color: var(--surface) !important; }

/* 21. Responsive */

/* Tablet (768px – 991px) */
@media (min-width: 768px) and (max-width: 991.98px) {
  .grid-padding { padding: 60px 40px; }
  .cta-banner { padding: 60px 40px; gap: 32px; }
  .footer-adamy { padding: 60px 40px 36px; }
  .navbar-adamy { padding: 0 40px; }
}

/* Service cards: prevent double borders on desktop side-by-side */
@media (min-width: 992px) {
  .col-lg-4:not(:first-child) .service-card { border-left: none; }
  .row + .row .service-card { border-top: none; }
}

/* Value items: prevent double borders on md+ side-by-side */
@media (min-width: 768px) {
  .col-md-4:not(:first-child) .value-item { border-left: none; }
}

/* Mobile (< 768px) */
@media (max-width: 767.98px) {
  .grid-padding { padding: 52px 20px; }
  h1 { font-size: clamp(2.8rem, 13vw, 5rem); }
  h2 { font-size: clamp(1.5rem, 7vw, 2.6rem); }
  .service-card { padding: 28px 20px; }
  .value-item   { padding: 32px 16px; }
  .red-block    { width: 80px !important; height: 80px !important; }
  .cta-banner   { flex-direction: column; padding: 52px 20px; align-items: flex-start; gap: 28px; }
  .footer-adamy { padding: 52px 20px 32px; }
  .btn-adamy, .btn-outline-adamy, .btn-adamy-white, .btn-outline-white { padding: 15px 24px; font-size: 11px; }
  p, .body-text { font-size: 16px; }
  /* Contact info: all items have top border when stacked */
  .contact-info-item { border-top: 1px solid rgba(0,0,0,0.12); }
}

/* 22. CTA Micro-copy */
.cta-micro {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: rgba(0,0,0,0.38);
  margin-top: 12px;
}

/* 23. Testimonials */
.testimonial-card {
  border: 1px solid rgba(0,0,0,0.12);
  padding: 36px 32px;
  background: var(--bg);
  height: 100%;
  transition: border-color 0.35s;
}
.testimonial-card:hover { border-color: var(--primary); }
.testimonial-quote {
  font-size: 1rem;
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 20px;
  opacity: 0.8;
}
.testimonial-author {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.42;
  margin: 0;
}

/* Testimonial border management */
@media (min-width: 992px) {
  .col-lg-4:not(:first-child) .testimonial-card { border-left: none; }
}

/* 24. FAQ */
.faq-item {
  border-bottom: 1px solid rgba(0,0,0,0.1);
  padding: 28px 0;
}
.faq-item:first-child { border-top: 1px solid rgba(0,0,0,0.1); }
.faq-q {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.faq-a {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.65;
  margin: 0;
}

/* 25. Exit Intent Popup */
.exit-popup {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.65);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-expo);
}
.exit-popup.is-visible {
  opacity: 1;
  pointer-events: all;
}
.exit-popup-inner {
  background: var(--bg);
  padding: 56px 52px;
  max-width: 540px;
  width: 90%;
  position: relative;
}
.exit-popup-close {
  position: absolute;
  top: 16px; right: 20px;
  background: none; border: none;
  font-size: 28px; cursor: pointer;
  line-height: 1;
  color: rgba(0,0,0,0.3);
  font-weight: 300;
  padding: 0;
}
.exit-popup-close:hover { color: var(--primary); }
.exit-popup h3 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 16px;
  border: none;
  padding: 0;
}
.exit-popup p {
  font-size: 15px;
  line-height: 1.7;
  opacity: 0.65;
  margin-bottom: 28px;
}

/* 26. AI Demo Animation */
.ai-demo {
  width: 260px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font-main);
  flex-shrink: 0;
}

.ai-demo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.ai-demo-dots-row {
  display: flex;
  gap: 5px;
  align-items: center;
}

.ai-demo-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}
.ai-demo-dot--red { background: var(--accent); }

.ai-demo-header-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
  opacity: 0.3;
  margin-left: 4px;
}

.ai-demo-body {
  position: relative;
  height: 148px;
  overflow: hidden;
}

.ai-demo-phase {
  position: absolute;
  inset: 0;
  padding: 18px 16px 16px;
  opacity: 0;
}

/* 10s loop: Phase 1 → 0-3s | Phase 2 → 3-6.5s | Phase 3 → 6.5-10s */
.ai-demo-phase--1 { animation: aiPhase1 10s ease infinite; }
.ai-demo-phase--2 { animation: aiPhase2 10s ease infinite; }
.ai-demo-phase--3 { animation: aiPhase3 10s ease infinite; }

@keyframes aiPhase1 {
  0%   { opacity: 0; transform: translateY(8px); }
  4%   { opacity: 1; transform: translateY(0); }
  27%  { opacity: 1; transform: translateY(0); }
  30%  { opacity: 0; transform: translateY(-5px); }
  100% { opacity: 0; }
}

@keyframes aiPhase2 {
  0%   { opacity: 0; }
  30%  { opacity: 0; transform: translateY(8px); }
  34%  { opacity: 1; transform: translateY(0); }
  62%  { opacity: 1; transform: translateY(0); }
  65%  { opacity: 0; transform: translateY(-5px); }
  100% { opacity: 0; }
}

@keyframes aiPhase3 {
  0%   { opacity: 0; }
  65%  { opacity: 0; transform: translateY(8px); }
  69%  { opacity: 1; transform: translateY(0); }
  96%  { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; }
}

.ai-demo-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  font-weight: 700;
  color: rgba(255,255,255,0.35);
  margin: 0 0 10px;
}
.ai-demo-tag--done { color: var(--accent); }

.ai-demo-msg {
  font-size: 13px;
  line-height: 1.65;
  opacity: 0.6;
  margin: 0;
  font-style: italic;
}

.ai-demo-progress-track {
  height: 2px;
  background: rgba(255,255,255,0.1);
  margin-bottom: 10px;
  overflow: hidden;
}

.ai-demo-progress-fill {
  height: 100%;
  background: var(--accent);
  animation: aiBarFill 10s linear infinite;
}

@keyframes aiBarFill {
  0%   { width: 0%; }
  30%  { width: 0%; }
  34%  { width: 4%; }
  62%  { width: 100%; }
  100% { width: 100%; }
}

.ai-demo-phase-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.28;
  margin: 0;
}

.ai-demo-results {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 4px;
}

.ai-demo-result {
  font-size: 13px;
  margin: 0;
  opacity: 0;
  color: rgba(255,255,255,0.8);
}

.ai-demo-result:nth-child(1) { animation: aiItem1 10s ease infinite; }
.ai-demo-result:nth-child(2) { animation: aiItem2 10s ease infinite; }
.ai-demo-result:nth-child(3) { animation: aiItem3 10s ease infinite; }

@keyframes aiItem1 {
  0%   { opacity: 0; transform: translateX(-6px); }
  69%  { opacity: 0; transform: translateX(-6px); }
  73%  { opacity: 1; transform: translateX(0); }
  96%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes aiItem2 {
  0%   { opacity: 0; transform: translateX(-6px); }
  74%  { opacity: 0; transform: translateX(-6px); }
  78%  { opacity: 1; transform: translateX(0); }
  96%  { opacity: 1; }
  100% { opacity: 0; }
}
@keyframes aiItem3 {
  0%   { opacity: 0; transform: translateX(-6px); }
  79%  { opacity: 0; transform: translateX(-6px); }
  83%  { opacity: 1; transform: translateX(0); }
  96%  { opacity: 1; }
  100% { opacity: 0; }
}

.ai-demo-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-demo-pulse {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: aiPulse 2s ease infinite;
  flex-shrink: 0;
}

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

.ai-demo-footer-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  opacity: 0.28;
}

/* Reduced motion: static final state */
@media (prefers-reduced-motion: reduce) {
  .ai-demo-phase { animation: none; }
  .ai-demo-phase--3 { opacity: 1; }
  .ai-demo-result { animation: none; opacity: 1; transform: none; }
  .ai-demo-progress-fill { animation: none; width: 100%; }
  .ai-demo-pulse { animation: none; }
}

/* 27. Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .stagger > *, .hero-line-inner, .hero-caption {
    opacity: 1 !important;
    transform: none !important;
  }
  .page-loader { display: none; }
}

