/* Flux Landing — inspired by corporate fintech aesthetic */

:root {
  --bg: #0a0c0e;
  --bg-elevated: #101214;
  --bg-card: #161a1d;
  --bg-card-hover: #1c2124;
  --text: #f0f2f5;
  --text-muted: #8a939e;
  --accent: #00c4b4;
  --accent-light: #1de9b6;
  --accent-dark: #009688;
  --accent-glow: rgba(0, 196, 180, 0.22);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
  --header-h: 72px;
  --container: 1140px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 12, 14, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.brand-logo__icon {
  display: block;
  width: auto;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.brand-logo--hero .brand-logo__icon {
  width: min(120px, 26vw);
  transform: translateZ(0);
}

.brand-logo__flux {
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1;
  text-transform: lowercase;
}

.brand-logo--sm .brand-logo__icon {
  width: 28px;
}

.brand-logo--sm .brand-logo__flux {
  font-size: 1.125rem;
}

.brand-logo--hero {
  animation: logoFloat 6s ease-in-out infinite;
  gap: 20px;
}

.brand-logo--hero .brand-logo__flux {
  font-size: clamp(3.25rem, 7.5vw, 5rem);
  filter: drop-shadow(0 20px 40px rgba(0, 196, 180, 0.18));
}

.brand-logo--footer {
  gap: 10px;
}

.brand-logo--footer .brand-logo__icon {
  width: 32px;
}

.brand-logo--footer .brand-logo__flux {
  font-size: 1.15rem;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

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

.nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.nav__docs {
  color: var(--accent-light) !important;
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-toggle {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.lang-toggle:hover {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.15);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  overflow: hidden;
}

.hero__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  padding: 48px 0 0;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, var(--accent-glow), transparent),
    radial-gradient(ellipse 50% 40% at 90% 80%, rgba(0, 196, 180, 0.08), transparent),
    linear-gradient(180deg, var(--bg) 0%, #0d1012 100%);
  pointer-events: none;
}

.hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black, transparent);
}

.hero__layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
  flex: 1;
}

.hero__content {
  position: relative;
  max-width: 580px;
}

.hero__logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero__logo-wrap::before {
  content: "";
  position: absolute;
  width: min(280px, 60vw);
  height: min(280px, 60vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(29, 233, 182, 0.14) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.hero__title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero__subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 580px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero__scroll {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 32px 0 28px;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  flex-shrink: 0;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--text-muted), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent-dark));
  color: #0a0c0e;
  box-shadow: 0 4px 24px var(--accent-glow);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
}

.btn--large {
  padding: 16px 36px;
  font-size: 1rem;
}

.btn--full {
  width: 100%;
}

/* Sections */
.section {
  padding: 100px 0;
}

.section--dark {
  background: var(--bg-elevated);
}

.section__header {
  max-width: 640px;
  margin-bottom: 56px;
}

.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-light);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section__desc {
  color: var(--text-muted);
  font-size: 1.0625rem;
  line-height: 1.7;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition);
}

.stat:hover {
  border-color: rgba(0, 196, 180, 0.35);
}

.stat__value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  background: linear-gradient(135deg, var(--text), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  padding: 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 196, 180, 0.3);
  transform: translateY(-4px);
}

.card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-glow);
  border-radius: 12px;
  color: var(--accent-light);
  margin-bottom: 20px;
}

.card__icon svg {
  width: 24px;
  height: 24px;
}

.card__title {
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.card__text {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* About */
.about__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.about__content .section__label,
.about__content .section__title {
  display: block;
}

.about__list {
  list-style: none;
  margin-top: 28px;
  display: inline-block;
  text-align: left;
}

.about__text {
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 12px;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.about__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
}

/* CTA */
.cta {
  padding: 80px 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 100%, var(--accent-glow), transparent),
    var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.cta__inner {
  text-align: center;
  max-width: 560px;
}

.cta__title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.cta__text {
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.7;
}

/* Contact */
.section--contact {
  padding-bottom: 80px;
}

.contact {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.contact__desc {
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.7;
}

.contact__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: left;
  transition: border-color var(--transition), background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.contact-card:hover {
  border-color: rgba(0, 196, 180, 0.35);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.contact-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(29, 233, 182, 0.1);
  color: var(--accent-light);
}

.contact-card__icon svg {
  width: 24px;
  height: 24px;
}

.contact-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-card__label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.contact-card__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-card__arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  opacity: 0.6;
  transition: color var(--transition), opacity var(--transition), transform var(--transition);
}

.contact-card:hover .contact-card__arrow {
  color: var(--accent-light);
  opacity: 1;
  transform: translate(2px, -2px);
}

/* Footer */
.footer {
  background: var(--bg-elevated);
  border-top: 1px solid var(--border);
  padding-top: 60px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer__tagline {
  margin-top: 12px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer__col h4 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.footer__col a {
  display: block;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}

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

.footer__bottom {
  padding: 20px 0;
  border-top: 1px solid var(--border);
}

.footer__bottom p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Mobile nav */
.nav--open {
  display: flex !important;
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  background: rgba(10, 12, 14, 0.98);
  backdrop-filter: blur(16px);
}

.nav--open a {
  font-size: 1.25rem;
}

.menu-toggle--active span:first-child {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle--active span:last-child {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Responsive */
@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .hero__layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero__content {
    max-width: none;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__logo-wrap {
    order: -1;
  }

  .hero__body {
    padding-top: 32px;
  }

  .hero__scroll {
    padding: 24px 0 20px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__links {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .btn {
    width: 100%;
  }

  .footer__links {
    grid-template-columns: 1fr;
  }

  .contact__actions {
    grid-template-columns: 1fr;
  }
}
