/* Smartic site — shared design system (matches landing page) */

:root {
  --bg: #0f172a;
  --bg-elevated: #111827;
  --bg-soft: #1e293b;
  --surface: rgba(30, 41, 59, 0.55);
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent: #8b5cf6;
  --accent-soft: #c4b5fd;
  --accent-deep: #7c3aed;
  --highlight: #fbbf24;
  --success: #22c55e;
  --danger: #ef4444;
  --radius: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.28);
  --glow: 0 0 60px rgba(139, 92, 246, 0.22);
  --nav-h: 72px;
  --max: 1120px;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: var(--accent-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: #fff;
}

button {
  font-family: inherit;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--text);
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
}

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

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

p {
  margin: 0;
  color: var(--text-secondary);
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

/* Aurora */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

.aurora__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.4;
  will-change: transform;
}

.aurora__blob--1 {
  width: 50vw;
  height: 50vw;
  max-width: 640px;
  max-height: 640px;
  top: -16%;
  left: -10%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 70%);
  animation: drift-a 22s var(--ease) infinite alternate;
}

.aurora__blob--2 {
  width: 40vw;
  height: 40vw;
  max-width: 480px;
  max-height: 480px;
  top: 20%;
  right: -12%;
  background: radial-gradient(circle, rgba(196, 181, 253, 0.25), transparent 70%);
  animation: drift-b 28s var(--ease) infinite alternate;
}

.aurora__blob--3 {
  width: 35vw;
  height: 35vw;
  max-width: 400px;
  max-height: 400px;
  bottom: 10%;
  left: 35%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.1), transparent 70%);
  animation: drift-c 26s var(--ease) infinite alternate;
}

@keyframes drift-a {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(8%, 12%) scale(1.08);
  }
}

@keyframes drift-b {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-10%, 8%) scale(1.12);
  }
}

@keyframes drift-c {
  from {
    transform: translate(0, 0);
  }
  to {
    transform: translate(6%, -10%);
  }
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  transition:
    background 0.3s var(--ease),
    border-color 0.3s var(--ease),
    backdrop-filter 0.3s var(--ease);
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom-color: var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  flex-shrink: 0;
  z-index: 2;
}

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

.brand__logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.brand__name {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  z-index: 2;
  font-size: 1.2rem;
  place-items: center;
}

.nav__panel {
  margin-left: auto;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.35rem;
}

.nav__links a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav__links a:hover,
.nav__links a[aria-current="page"] {
  color: var(--text);
}

.nav__links .btn {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.nav__links .btn:hover {
  color: #fff;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--accent-soft);
  outline-offset: 3px;
}

.btn--primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #a78bfa 0%, var(--accent) 42%, var(--accent-deep) 100%);
  box-shadow:
    0 8px 28px rgba(139, 92, 246, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 1px 0 rgba(255, 255, 255, 0.2) inset;
  animation: cta-glow 2.8s var(--ease) infinite;
}

.btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    110deg,
    transparent 20%,
    rgba(255, 255, 255, 0.28) 45%,
    rgba(251, 191, 36, 0.18) 55%,
    transparent 75%
  );
  transform: translateX(-120%);
  animation: cta-shine 3.2s var(--ease) infinite;
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 14px 40px rgba(139, 92, 246, 0.55),
    0 0 24px rgba(251, 191, 36, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  animation: none;
}

@keyframes cta-glow {
  0%,
  100% {
    box-shadow:
      0 8px 28px rgba(139, 92, 246, 0.38),
      0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  }
  50% {
    box-shadow:
      0 10px 36px rgba(139, 92, 246, 0.55),
      0 0 28px rgba(167, 139, 250, 0.35),
      0 0 0 1px rgba(255, 255, 255, 0.16) inset;
  }
}

@keyframes cta-shine {
  0%,
  55% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(120%);
  }
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
}

.btn--ghost:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.btn--lg {
  padding: 1rem 1.6rem;
  font-size: 1rem;
}

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

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.75s var(--ease),
    transform 0.75s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

/* Page hero */
.page-hero {
  padding: clamp(2.5rem, 6vh, 4rem) 0 clamp(2rem, 4vh, 3rem);
}

.page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  margin-bottom: 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.page-hero h1 {
  max-width: 18ch;
  margin-bottom: 1rem;
}

.page-hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 48ch;
  line-height: 1.65;
}

/* Pricing page */
.pricing-status {
  margin: 0 0 1.5rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.pricing-status--error {
  color: #fecaca;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.price-card {
  padding: 1.6rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 100%;
}

.price-card--featured {
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: var(--glow);
}

.price-card__name {
  font-weight: 700;
  font-size: 1.1rem;
}

.price-card__amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.price-card__amount span {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}

.price-card__features {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  flex: 1;
}

.price-card__note {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-thanks {
  padding: 1.5rem 1.35rem;
  margin-top: 0.5rem;
}

/* Account / manage plan */
.account-auth {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.account-auth__user {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-right: 0.25rem;
}

.account-panel {
  max-width: 520px;
  padding: 1.6rem 1.45rem;
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

.account-panel__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  font-size: 0.98rem;
}

.account-panel__label {
  color: var(--text-muted);
}

.account-panel__hint {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.35rem;
}

.btn--secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.btn--secondary:hover {
  border-color: rgba(196, 181, 253, 0.55);
  color: #fff;
}

.btn--danger-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: transparent;
  color: #fecaca;
  font-weight: 600;
  cursor: pointer;
}

.btn--danger-outline:hover {
  border-color: rgba(239, 68, 68, 0.75);
  color: #fff;
}

.meta-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* Sections */
.section {
  padding: clamp(2.5rem, 6vh, 4.5rem) 0;
}

.section--tight {
  padding-top: 0;
}

.glass {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-soft);
}

/* Feature deep-dive blocks */
.feature-blocks {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.feature-block {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
  transition:
    transform 0.35s var(--ease),
    border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.feature-block:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.35);
  box-shadow: var(--glow), var(--shadow-soft);
}

.feature-block h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  margin-bottom: 0.75rem;
}

.feature-block p + p {
  margin-top: 0.75rem;
}

.feature-block__aside {
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(139, 92, 246, 0.28);
  background: rgba(139, 92, 246, 0.08);
  font-size: 0.95rem;
  color: var(--text-secondary);
  align-self: start;
}

.feature-block__aside strong {
  display: block;
  color: var(--text);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

/* Blog */
.blog-index {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
}

.blog-index a {
  display: block;
  padding: 1.35rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(12px);
  color: var(--text);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}

.blog-index a:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

.blog-index__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
}

.blog-index__meta {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin: 0;
}

.article {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.article h2 {
  max-width: 22ch;
  margin-bottom: 1rem;
}

/* Prose */
.prose {
  max-width: 42rem;
}

.prose h2 {
  margin-top: 2.5rem;
  margin-bottom: 0.85rem;
  font-size: 1.45rem;
}

.prose h3 {
  margin-top: 1.75rem;
  margin-bottom: 0.65rem;
}

.prose p {
  margin-bottom: 1em;
}

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

.prose ul {
  list-style: disc;
  padding-left: 1.25rem;
  margin: 0 0 1em;
  color: var(--text-secondary);
}

.prose li + li {
  margin-top: 0.4em;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.contact-form {
  padding: 1.75rem;
}

.form-field {
  margin-bottom: 1.1rem;
}

.form-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.45rem;
  color: var(--text-muted);
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-field select {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(15, 23, 42, 0.7);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}

.form-field select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
}

.form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 0.85rem;
}

.contact-aside h2 {
  margin-bottom: 0.75rem;
  font-size: 1.5rem;
}

.contact-aside h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.contact-aside ul {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.contact-aside li {
  color: var(--text-secondary);
  padding-left: 1.25rem;
  position: relative;
  font-size: 0.95rem;
}

.contact-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px rgba(139, 92, 246, 0.6);
}

/* CTA band */
.cta {
  padding: 0 0 clamp(3.5rem, 8vh, 5.5rem);
}

.cta__box {
  position: relative;
  padding: clamp(2.25rem, 5vw, 3.5rem);
  border-radius: calc(var(--radius) + 4px);
  border: 1px solid rgba(139, 92, 246, 0.35);
  background:
    radial-gradient(ellipse 80% 80% at 20% 0%, rgba(139, 92, 246, 0.25), transparent 55%),
    rgba(30, 41, 59, 0.55);
  backdrop-filter: blur(18px);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--glow);
}

.cta__box h2 {
  margin-bottom: 0.75rem;
}

.cta__box p {
  max-width: 40ch;
  margin: 0 auto 1.5rem;
  font-size: 1.05rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 3.5rem 0 2rem;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer__brand p {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  max-width: 28ch;
}

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

.footer__col a {
  display: block;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
  padding: 0.3rem 0;
}

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

.footer__social {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.footer__social a {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.03);
}

.footer__social a:hover {
  color: var(--text);
  border-color: rgba(139, 92, 246, 0.4);
}

.footer__bottom {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive */
@media (max-width: 1024px) {
  .feature-block,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .page-hero h1 {
    max-width: none;
  }
}

@media (max-width: 860px) {
  .nav__toggle {
    display: grid;
  }

  .nav__panel {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    margin: 0;
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease),
      visibility 0.25s;
  }

  .nav__panel.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
  }

  .nav__links a {
    padding: 0.75rem 0.25rem;
    font-size: 1.05rem;
  }

  .nav__links .btn {
    width: 100%;
    margin-top: 0.5rem;
  }
}

@media (max-width: 560px) {
  :root {
    --nav-h: 64px;
    --radius: 22px;
  }

  .container {
    width: min(100% - 1.5rem, var(--max));
  }

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

  .feature-block,
  .contact-form {
    padding: 1.35rem;
  }

  .article h2 {
    max-width: none;
  }
}
