/* InFluxient — Design system */
:root {
  --bg: #080c14;
  --bg-elevated: #0f1623;
  --bg-card: #131b2e;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --accent: #92D400;
  --accent-soft: rgba(146, 212, 0, 0.15);
  --accent-secondary: #06b6d4;
  --border: rgba(148, 163, 184, 0.12);
  --font-head: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --radius-lg: 20px;
  --container: min(1200px, 100% - 3rem);
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(8, 12, 20, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s;
}

.header.scrolled {
  background: rgba(8, 12, 20, 0.95);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--accent);
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 0.4rem;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-item.is-open .nav-link {
  color: var(--text);
}

/* Underline when dropdown is visible: hover (desktop) or .is-open (mobile) — only for items with dropdowns */
.nav-item.has-dropdown:hover .nav-link,
.nav-item.has-dropdown.is-open .nav-link {
  border-bottom: 2px solid var(--accent);
}

.nav-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.2rem;
  opacity: 0.9;
  transition: transform 0.2s ease;
}

.nav-chevron svg {
  display: block;
  flex-shrink: 0;
}

/* Arrow down when closed, up when dropdown is open (hover on desktop, .is-open on mobile) */
.nav-item:hover .nav-chevron,
.nav-item.is-open .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdown panel */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(0.5rem);
  min-width: 320px;
  max-width: 480px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s, transform 0.2s;
  z-index: 50;
  margin-top: 0;
}

.nav-item:hover .dropdown,
.nav-item.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  padding: 1rem 0;
}

.dropdown-col {
  padding: 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.dropdown-col a {
  display: block;
  padding: 0.5rem 0.5rem 0.5rem 0;
  color: #0f172a;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s, padding-left 0.2s;
}

.dropdown-col a:hover {
  color: var(--accent);
  padding-left: 0.25rem;
}

.dropdown-featured {
  padding: 1rem 1.25rem;
  border-left: 1px solid #e2e8f0;
  min-width: 180px;
}

.dropdown-featured-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.85rem;
  color: #0f172a;
  margin: 0 0 0.5rem;
}

.dropdown-featured-text {
  font-size: 0.85rem;
  color: #475569;
  margin: 0;
  line-height: 1.4;
}

.dropdown-featured-card {
  font-size: 0.8rem;
  color: #475569;
  padding: 0.75rem;
  background: #f1f5f9;
  border-radius: var(--radius);
  margin-top: 0.5rem;
  line-height: 1.4;
}

/* Dropdown with only one column (no featured) */
.dropdown-inner:only-child .dropdown-col,
.dropdown .dropdown-inner .dropdown-col:only-child {
  grid-column: 1 / -1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #080c14;
}

.btn-primary:hover {
  background: #a8e600;
  box-shadow: 0 0 24px rgba(146, 212, 0, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-soft);
}

.btn-lg {
  padding: 0.9rem 1.75rem;
  font-size: 1rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 12, 20, 0.75) 0%, rgba(8, 12, 20, 0.6) 50%, rgba(8, 12, 20, 0.85) 100%),
    linear-gradient(rgba(8, 12, 20, 0.1), rgba(8, 12, 20, 0.1)),
    url('../assets/hero-bg.png') center / cover no-repeat;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 800px;
}

.hero-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
  color: var(--text);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin: 0 0 2rem;
  max-width: 600px;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--accent), transparent);
  border-radius: 1px;
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Trust */
.trust {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.trust-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.5rem;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.trust-item {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Section title */
.section-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 2.5rem;
  color: var(--text);
  max-width: 700px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 1.5rem;
  line-height: 1.6;
}

.capabilities-list {
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

.capabilities-list li {
  position: relative;
  padding: 0.5rem 0 0.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.capabilities-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* Inner page hero (shorter) */
.hero-page {
  min-height: 60vh;
}

.hero-page .hero-desc {
  max-width: 640px;
}

/* Services */
.services {
  padding: 5rem 0;
}

.services-grid,
.ai-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.service-card:hover {
  border-color: rgba(146, 212, 0, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.service-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.service-card p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.link-arrow {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 0.2s;
}

.link-arrow:hover {
  gap: 0.6rem;
}

.link-arrow::after {
  content: '→';
}

.services .btn-outline {
  margin-top: 0.5rem;
}

/* Featured */
.featured {
  padding: 5rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.featured-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 1rem;
}

.featured-desc {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.featured-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.featured-item h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.featured-item ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.featured-item li {
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.featured-item li::before {
  content: '• ';
  color: var(--accent);
}

/* Stats */
.stats {
  padding: 4rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

@media (min-width: 600px) {
  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-num {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--accent);
  letter-spacing: -0.03em;
}

.stat-suffix {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--accent);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.5rem 0 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

/* Work / Case studies */
.work {
  padding: 5rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.work-carousel {
  overflow-x: auto;
  overflow-y: hidden;
  margin-bottom: 1.5rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.work-carousel::-webkit-scrollbar {
  height: 6px;
}

.work-carousel::-webkit-scrollbar-track {
  background: var(--bg);
  border-radius: 3px;
}

.work-carousel::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.work-track {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 0.5rem;
  min-width: min-content;
}

.work-card {
  scroll-snap-align: start;
}

.work-card {
  flex: 0 0 min(340px, 85vw);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s;
}

.work-card:hover {
  border-color: rgba(146, 212, 0, 0.3);
}

.work-card-inner {
  padding: 2rem;
}

.work-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.2rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.work-card p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
}

.work-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.work-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.work-dots .dot.active {
  background: var(--accent);
  transform: scale(1.2);
}

/* Testimonials */
.testimonials {
  padding: 5rem 0;
}

.testimonials-slider {
  overflow: hidden;
  margin-bottom: 2rem;
}

.testimonials-track {
  display: flex;
  gap: 2rem;
}

.testimonial {
  flex: 0 0 min(500px, 90vw);
  margin: 0;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.testimonial p {
  font-size: 1.05rem;
  color: var(--text);
  margin: 0 0 1rem;
  font-style: italic;
}

.testimonial cite {
  font-style: normal;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Clients */
.clients {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.clients-marquee {
  overflow: hidden;
}

.clients-track {
  display: flex;
  gap: 3rem;
  animation: marquee 30s linear infinite;
}

.clients-track span {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  color: var(--text-muted);
  white-space: nowrap;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Expertise */
.expertise {
  padding: 5rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.expertise-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color 0.2s;
}

.expertise-card:hover {
  border-color: rgba(146, 212, 0, 0.25);
}

.expertise-card h3 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.expertise-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* CTA */
.cta {
  padding: 5rem 0;
  text-align: center;
}

.cta .section-title {
  margin-inline: auto;
  margin-bottom: 1rem;
}

.cta p {
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* Industries */
.industries {
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}

.industries-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.industry-tag {
  padding: 0.5rem 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: border-color 0.2s, color 0.2s;
}

.industry-tag:hover {
  border-color: var(--accent);
  color: var(--text);
}

/* FAQ */
.faq {
  padding: 5rem 0;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
}

.faq-list {
  max-width: 700px;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 1.25rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-item p {
  color: var(--text-muted);
  padding: 0 0 1.25rem;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Contact */
.contact {
  padding: 5rem 0;
}

.contact-form {
  max-width: 480px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.form-row input::placeholder,
.form-row textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--accent);
}

.contact-note {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}

.footer-links h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
  color: var(--text);
}

.footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  display: block;
  padding: 0.25rem 0;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile nav */
@media (max-width: 900px) {
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(300px, 85vw);
    height: 100vh;
    background: var(--bg-elevated);
    border-left: 1px solid var(--border);
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 99;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav-list {
    flex-direction: column;
    gap: 0;
  }

  .nav-item {
    border-bottom: 1px solid var(--border);
  }

  .nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1.05rem;
  }

  .nav-item .dropdown {
    position: static;
    transform: none;
    min-width: 0;
    max-width: none;
    background: var(--bg-card);
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }

  .nav-item.is-open .dropdown {
    max-height: 400px;
  }

  .nav-item.is-open .dropdown-inner {
    padding: 0.5rem 0 1rem;
  }

  .nav-item .dropdown-col {
    padding: 0 0 0 1rem;
  }

  .nav-item .dropdown-col a {
    color: var(--text-muted);
    padding: 0.5rem 0;
  }

  .nav-item .dropdown-col a:hover {
    color: var(--accent);
  }

  .nav-item .dropdown-featured {
    display: none;
  }

  .header .btn-primary {
    display: none;
  }

  .menu-toggle {
    display: flex;
    z-index: 101;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
    z-index: 98;
  }

  .nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }
}

/* Consult modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 20, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-box {
  position: relative;
  width: 100%;
  max-width: 920px;
  max-height: 90vh;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: scale(0.98);
  transition: transform 0.25s ease;
}

.modal.is-open .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
  background: #f1f5f9;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}

.modal-close:hover {
  color: #0f172a;
  background: #e2e8f0;
}

.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow-y: auto;
  max-height: 90vh;
}

.modal-left {
  padding: 2.5rem 2rem 2rem;
  background: #f8fafc;
}

.modal-headline {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.modal-headline-accent {
  color: var(--accent);
}

.modal-desc {
  font-size: 0.95rem;
  color: #475569;
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.modal-visual {
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e2e8f0;
}

.modal-visual-placeholder {
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem;
  background: linear-gradient(145deg, #f1f5f9 0%, #e2e8f0 100%);
}

.modal-visual-logo {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--accent);
}

.modal-visual-hint {
  font-size: 0.8rem;
  color: #64748b;
}

.modal-achievements {
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: #334155;
}

.modal-achievements li {
  padding: 0.2rem 0;
}

.modal-achievements li::before {
  content: '• ';
  color: var(--accent);
}

.modal-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.modal-award {
  font-size: 0.75rem;
  color: #64748b;
  padding: 0.4rem 0.6rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.modal-award-badge {
  font-weight: 600;
  color: var(--accent);
}

.modal-right {
  padding: 2.5rem 2rem 2rem;
}

.modal-form .form-row {
  margin-bottom: 1rem;
}

.modal-form label {
  display: block;
  font-weight: 500;
  font-size: 0.9rem;
  margin-bottom: 0.35rem;
  color: #0f172a;
}

.modal-form .required {
  color: #dc2626;
}

.modal-form input,
.modal-form textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius);
  transition: border-color 0.2s;
}

.modal-form input::placeholder,
.modal-form textarea::placeholder {
  color: #94a3b8;
}

.modal-form input:focus,
.modal-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(146, 212, 0, 0.15);
}

.form-row-captcha input {
  max-width: 4rem;
  text-align: center;
}

.btn-modal-submit {
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.modal-disclaimers {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
}

.modal-disclaimers li {
  padding: 0.2rem 0;
}

@media (max-width: 720px) {
  .modal-inner {
    grid-template-columns: 1fr;
  }

  .modal-left {
    padding: 1.5rem 1.5rem 1rem;
  }

  .modal-right {
    padding: 1.5rem 1.5rem 2rem;
  }

  .modal-headline {
    font-size: 1.3rem;
  }
}
