:root {
  --bg-dark: #050b16;
  --bg-card: #0f1629;
  --bg-panel: #121b32;
  --text-primary: #f7f9ff;
  --text-secondary: #c9d3f2;
  --accent-primary: #6366f1;
  --accent-secondary: #24b38a;
  --accent-gradient: linear-gradient(120deg, #6d6cff, #24b38a);
  --border-color: rgba(255, 255, 255, 0.08);
  --shadow-lg: 0 25px 60px rgba(5, 11, 22, 0.45);
  --shadow-sm: 0 10px 30px rgba(3, 9, 20, 0.4);
}

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

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-primary);
  background: radial-gradient(circle at top, rgba(79, 70, 229, 0.18), transparent 55%),
    var(--bg-dark);
  min-height: 100vh;
  line-height: 1.6;
}

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

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" width="400" height="400" viewBox="0 0 400 400"%3E%3Cfilter id="n" x="0" y="0" width="1" height="1"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="400" height="400" filter="url(%23n)" opacity="0.05"/%3E%3C/svg%3E');
}

.hero {
  padding: 2.5rem clamp(1.25rem, 5vw, 5rem) 3rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 15% auto auto 55%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45), transparent 70%);
  filter: blur(90px);
  z-index: -1;
}

.hero__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 2rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Space Grotesk', sans-serif;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--accent-gradient);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.brand__name {
  font-size: 1.15rem;
}

.nav__links {
  display: flex;
  gap: 1rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.nav__links a,
.footer .nav__links a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav__links a:hover {
  color: var(--text-primary);
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent-gradient);
  color: #050b16;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 40px rgba(36, 179, 138, 0.35);
}

.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: none;
}

.ghost-link {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.ghost-link:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero__text h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 4vw, 3.6rem);
  margin-bottom: 1rem;
  line-height: 1.15;
}

.lead {
  color: var(--text-secondary);
  max-width: 550px;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 0.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.chip {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.hero__visual {
  position: relative;
}

.visual-card {
  border-radius: 28px;
  padding: 1.25rem;
  background: rgba(10, 16, 32, 0.85);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-lg);
}

.visual-card img {
  border-radius: 18px;
}

.floating {
  position: absolute;
  right: 0;
  padding: 1rem 1.25rem;
  border-radius: 18px;
  backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: var(--shadow-sm);
  width: clamp(180px, 40vw, 240px);
}

.floating p {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.floating span {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.floating--primary {
  top: 10%;
  transform: translate(35%, -30%);
  background: rgba(99, 102, 241, 0.2);
}

.floating--secondary {
  bottom: 0;
  transform: translate(15%, 40%);
  background: rgba(36, 179, 138, 0.2);
}

main {
  padding: 0 clamp(1.25rem, 5vw, 5rem) 5rem;
}

.trust {
  margin: 3rem auto 4rem;
  padding: 2rem;
  border-radius: 24px;
  background: rgba(12, 18, 36, 0.8);
  border: 1px solid var(--border-color);
  text-align: center;
}

.trust__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.trust__stats span {
  display: block;
  font-size: 2rem;
  font-family: 'Space Grotesk', sans-serif;
}

.section-heading {
  text-align: left;
  max-width: 700px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin-bottom: 0.75rem;
}

.section-heading p {
  color: var(--text-secondary);
}

.benefits {
  margin-bottom: 4rem;
}

.benefits__grid {
  display: grid;
  grid-template-columns: repeat(var(--benefit-columns, 1), minmax(0, 1fr));
  gap: 1.25rem;
}

@media (min-width: 600px) {
  .benefits__grid {
    --benefit-columns: 2;
  }
}

@media (min-width: 1024px) {
  .benefits__grid {
    --benefit-columns: 3;
  }
}

.benefits__grid article {
  padding: 1.75rem;
  border-radius: 22px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.benefits__grid article:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.3);
}

.benefits__grid h3 {
  font-size: 1.2rem;
}

.benefits__grid p {
  color: var(--text-secondary);
}

.result {
  font-size: 0.9rem;
  color: var(--accent-secondary);
}

.platform {
  margin: 4rem 0 5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.platform__visual {
  border-radius: 30px;
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(99, 102, 241, 0.2), rgba(36, 179, 138, 0.15));
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
}

.platform__visual img {
  border-radius: 24px;
}

.platform__content h2 {
  font-size: clamp(2rem, 2.8vw, 2.6rem);
  margin-bottom: 1rem;
}

.platform__content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
}

.platform__content li::before {
  content: '';
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-gradient);
  margin-right: 0.6rem;
}

.badge {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(10, 16, 32, 0.6);
  border: 1px solid var(--border-color);
}

.badge img {
  width: 80px;
  border-radius: 12px;
}

.badge p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.cta {
  margin: 0 clamp(1.25rem, 5vw, 5rem) 4rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 32px;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.4), rgba(6, 10, 25, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.cta h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 2rem clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

@media (max-width: 768px) {
  .hero__nav {
    flex-direction: column;
  }

  .hero__visual {
    order: -1;
  }

  .platform__content li::before {
    margin-right: 0.4rem;
  }

  .floating {
    position: static;
    transform: none;
    margin-top: 1rem;
  }
}

@media (max-width: 520px) {
  .hero__actions,
  .hero__chips {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}

/* ========================================
   USE CASES SECTION
   ======================================== */

.use-cases {
  margin: 4rem 0 5rem;
}

.use-cases__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.use-case-card {
  padding: 2rem;
  border-radius: 22px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.use-case-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.3);
}

.use-case-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.use-case-icon svg {
  color: #050b16;
}

.use-case-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.use-case-card > p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.use-case-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.use-case-card li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding-left: 1.25rem;
  position: relative;
}

.use-case-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-secondary);
}

/* ========================================
   FAQ SECTION
   ======================================== */

.faq {
  margin: 4rem 0 5rem;
}

.faq__list {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq__item {
  border-radius: 16px;
  background: var(--bg-panel);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq__item:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.faq__item summary {
  padding: 1.25rem 1.5rem;
  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.5rem;
  font-weight: 300;
  color: var(--accent-primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item summary h3 {
  font-size: 1rem;
  font-weight: 500;
  margin: 0;
}

.faq__item > p {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ========================================
   CONTACT FORM SECTION
   ======================================== */

.cta {
  margin: 0 clamp(1.25rem, 5vw, 5rem) 4rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  border-radius: 32px;
  background: radial-gradient(circle at top right, rgba(79, 70, 229, 0.4), rgba(6, 10, 25, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-lg);
}

.cta__content {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta h2 {
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin-bottom: 1rem;
}

.cta__content > p {
  color: var(--text-secondary);
}

.contact-form-container {
  max-width: 700px;
  margin: 0 auto;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (max-width: 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

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

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(10, 16, 32, 0.6);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23c9d3f2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.form-group select option {
  background: var(--bg-dark);
  color: var(--text-primary);
}

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

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #ef4444;
}

.error-message {
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 1em;
}

.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.checkbox-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-primary);
  cursor: pointer;
  flex-shrink: 0;
}

.checkbox-label a {
  color: var(--accent-primary);
  text-decoration: underline;
}

.checkbox-label a:hover {
  color: var(--text-primary);
}

.form-actions {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn--large {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn--large svg {
  transition: transform 0.2s ease;
}

.btn--large:hover svg {
  transform: translateX(4px);
}

.btn--success {
  background: var(--accent-secondary);
}

.form-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

.form-note svg {
  flex-shrink: 0;
  opacity: 0.7;
}

/* Alternative Contact */
.alternative-contact {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.alternative-contact > p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.contact-methods {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.contact-method {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.contact-method:hover {
  color: var(--accent-primary);
}

.contact-method svg {
  opacity: 0.7;
}

/* ========================================
   IMPROVED FOOTER
   ======================================== */

.footer {
  padding: 0;
  border-top: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.footer__main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 3rem;
  padding: 3rem clamp(1.25rem, 5vw, 5rem);
}

@media (max-width: 768px) {
  .footer__main {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.footer__brand {
  max-width: 300px;
}

.footer__brand .brand {
  margin-bottom: 1rem;
  display: inline-flex;
}

.footer__brand > p {
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 520px) {
  .footer__nav {
    grid-template-columns: repeat(2, 1fr);
  }
}

.footer__col h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer__col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer__col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer__col a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
}

@media (max-width: 520px) {
  .footer__bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
  transition: background 0.2s ease, color 0.2s ease;
}

.social-links a:hover {
  background: var(--accent-primary);
  color: var(--text-primary);
}
