/* Casadata — Premium enterprise landing page */

:root {
  --bg: #08080d;
  --bg-elevated: #0f0f16;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.14);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --accent: #5b8def;
  --accent-bright: #7aa2ff;
  --violet: #a78bfa;
  --indigo: #6366f1;
  --amber: #f59e0b;
  --casa: #f8fafc;
  --data-grad: linear-gradient(135deg, #5b8def 0%, #a78bfa 100%);
  --radius: 14px;
  --radius-lg: 20px;
  --font: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --container: min(1120px, calc(100% - 3rem));
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.container {
  width: var(--container);
  margin-inline: auto;
}

/* Background */

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.page-bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 70%);
}

.page-bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.35;
}

.page-bg__glow--1 {
  width: 600px;
  height: 600px;
  top: -200px;
  right: -100px;
  background: radial-gradient(circle, rgba(91, 141, 239, 0.22), transparent 70%);
}

.page-bg__glow--2 {
  width: 500px;
  height: 500px;
  bottom: 10%;
  left: -150px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.2), transparent 70%);
}

/* Header */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(8, 8, 13, 0.75);
  border-bottom: 1px solid var(--border);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo img {
  height: 32px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.nav__cta {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.03);
}

.nav__cta:hover {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.06);
}

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

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

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.5rem 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.mobile-nav a {
  padding: 0.75rem 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav.is-open {
  display: flex;
}

/* Typography helpers */

.eyebrow {
  display: inline-block;
  margin: 0 0 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.25rem);
  max-width: 16ch;
}

h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}

h3 {
  font-size: 1.25rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn--primary {
  color: #0a1020;
  background: var(--accent-bright);
  box-shadow: 0 0 24px rgba(91, 141, 239, 0.3);
}

.btn--primary:hover {
  background: #93b4ff;
  box-shadow: 0 0 32px rgba(91, 141, 239, 0.4);
}

.btn--secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--border);
}

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

.btn--large {
  padding: 0.9rem 2rem;
  font-size: 1rem;
}

/* Hero */

.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem);
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero__sub {
  margin: 1.5rem 0 2rem;
  max-width: 48ch;
  font-size: 1.1rem;
  color: var(--text-muted);
}

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

.visual-panel {
  position: relative;
  padding: 1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 24px 48px rgba(0, 0, 0, 0.4);
}

.visual-panel__svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius-lg) - 1px);
  background: rgba(12, 12, 18, 0.9);
}

/* Credibility strip */

.strip {
  padding: 2rem 0;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
}

.strip__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.strip__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.4;
}

.strip__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--accent-bright);
}

.strip__icon svg {
  width: 18px;
  height: 18px;
}

/* Sections */

.section {
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.section-header {
  margin-bottom: 3rem;
  max-width: 540px;
}

.section-label h2 {
  margin-top: 0.5rem;
}

.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
}

.about__body p {
  margin: 0 0 1.25rem;
  font-size: 1.05rem;
  color: var(--text-muted);
}

.about__body p:last-child {
  margin-bottom: 0;
}

/* Solution cards */

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

.card {
  position: relative;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  opacity: 0;
  transition: opacity 0.25s;
}

.card--identity::before {
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.card--data::before {
  background: linear-gradient(90deg, transparent, var(--indigo), transparent);
}

.card--backup::before {
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.card:hover::before {
  opacity: 1;
}

.card__visual {
  margin: -0.5rem -0.5rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
  overflow: hidden;
}

.card__visual svg {
  display: block;
  width: 100%;
  height: auto;
}

.card__tag {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.card--identity .card__tag { color: var(--accent-bright); }
.card--data .card__tag { color: #a5b4fc; }
.card--backup .card__tag { color: var(--amber); }

.card h3 {
  margin-bottom: 0.75rem;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Why us */

.why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.why__intro p {
  margin: 1.25rem 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.why__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.why__list li {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.why__list li:first-child {
  padding-top: 0;
}

.why__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.why__num {
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent-bright);
  opacity: 0.7;
}

.why__list strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
}

.why__list span {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Final CTA */

.cta {
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.cta__panel {
  position: relative;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(91, 141, 239, 0.1), transparent 60%),
    rgba(255, 255, 255, 0.02);
  overflow: hidden;
  text-align: center;
}

.cta__glow {
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 200px;
  background: radial-gradient(circle, rgba(91, 141, 239, 0.18), transparent 70%);
  pointer-events: none;
}

.cta__content {
  position: relative;
  max-width: 620px;
  margin-inline: auto;
}

.cta__content h2 {
  margin-bottom: 1rem;
}

.cta__content p {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* Footer */

.footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo--footer img {
  height: 28px;
  opacity: 0.9;
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Responsive */

@media (max-width: 960px) {
  .hero__grid,
  .about__grid,
  .why__grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__visual {
    order: -1;
    max-width: 480px;
  }

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

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

@media (max-width: 720px) {
  :root {
    --container: min(1120px, calc(100% - 2rem));
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .strip__list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
