/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    --home-heading-gradient: linear-gradient(135deg, var(--primary) 0%, oklch(50% 0.18 290) 100%);
    background: var(--bg, #DCDCDC);
    background-image: var(--login-bg-grad, none);
    color: var(--on-surface, oklch(18% 0.015 250));
    font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Floating background ambient blobs */
body::before,
body::after {
  content: none;
  position: absolute;
  width: min(600px, 80vw);
  height: min(600px, 80vw);
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(140px);
  opacity: 0.6;
  animation: floatBlobs 30s infinite alternate ease-in-out;
}

body::before {
  top: 10%;
  left: -10%;
  background: radial-gradient(circle, oklch(80% 0.1 250) 0%, rgba(99, 102, 241, 0) 70%);
}

body::after {
  bottom: 20%;
  right: -10%;
  background: radial-gradient(circle, oklch(78% 0.12 310) 0%, rgba(236, 72, 153, 0) 70%);
  animation-delay: -15s;
}

@media (prefers-color-scheme: dark) {
  body:not(:has(#platform-theme-light:checked)) {
    --home-heading-gradient: linear-gradient(135deg, #ffffff 0%, oklch(74% 0.08 250) 100%);
  }

  body:not(:has(#platform-theme-light:checked))::before,
  body:not(:has(#platform-theme-light:checked))::after {
    display: none;
  }
}

body:has(#platform-theme-dark:checked) {
  --home-heading-gradient: linear-gradient(135deg, #ffffff 0%, oklch(74% 0.08 250) 100%);
}

body:has(#platform-theme-dark:checked)::before,
body:has(#platform-theme-dark:checked)::after {
  display: none;
}

@keyframes floatBlobs {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(80px, -40px) scale(1.08);
  }
  100% {
    transform: translate(-40px, 60px) scale(0.92);
  }
}

/* TYPOGRAPHY */
h1, h2, h3, .logo {
    font-family: var(--font-display, var(--font-sans, sans-serif));
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

h1 {
    font-size: clamp(2.25rem, 6vi, 3.75rem);
    margin-bottom: 1rem;
    background: var(--home-heading-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: clamp(1.75rem, 4vi, 2.5rem);
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

p {
    color: var(--on-surface-variant, oklch(42% 0.02 250));
}

/* LAYOUT CONTAINER */
main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
}

/* STICKY NAVIGATION */
.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(var(--bg), 0.8);
    background: var(--surface-strong);
    border-bottom: 1px solid var(--outline-variant);
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--on-surface);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.02);
}

.logo img {
    display: block;
}

/* FOCUS AND HOVER STYLES (ACCESSIBILITY) */
a {
    color: inherit;
    text-decoration: none;
}

a:focus-visible, button:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 3px;
}

/* SECTION COMMON */
.section {
    padding: 5rem 0;
    border-bottom: 1px solid var(--outline-variant);
}

.section:last-of-type {
    border-bottom: none;
}

.eyebrow {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.section-header {
    margin-bottom: 3.5rem;
}

.section-lead {
    font-size: 1.15rem;
    color: var(--on-surface-variant);
}

/* HERO SECTION */
.hero {
    padding: 5rem 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    border-bottom: 1px solid var(--outline-variant);
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lead {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--on-surface-variant);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.hero-content p {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--on-surface);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

/* CHIPS */
.chips-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    margin-bottom: 1.5rem;
}

.chips-group li {
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--primary-container);
    border: 1px solid var(--outline-variant);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-pill);
    color: var(--on-primary-container);
    transition: all 0.2s ease;
}

.chips-group li:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.chips-group.muted li {
    background: var(--surface);
    border: 1px solid var(--outline);
    color: var(--on-surface-variant);
}

.chips-group li.new {
    border: 1.5px solid var(--warning);
    background: var(--surface);
    color: var(--on-surface);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.chips-group li.new::after {
    content: "new";
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--warning);
    color: oklch(15% 0.02 75);
    padding: 0.15rem 0.35rem;
    border-radius: 9999px;
    line-height: 1;
}

.chips-group li.new:hover {
    box-shadow: 0 0 6px var(--warning);
}

/* BUTTONS */
.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.button.primary {
    background: var(--primary);
    color: var(--on-primary);
    border: 1px solid var(--primary);
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.2);
}

.button.primary:hover {
    background: transparent;
    color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.3);
}

.button.secondary {
    background: var(--surface-strong);
    color: var(--on-surface);
    border: 1px solid var(--outline);
}

.button.secondary:hover {
    border-color: var(--primary);
    background: var(--surface-variant);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* PROOF CARD */
.proof-card {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.proof-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(99, 102, 241, 0.2);
}

.proof-card h2 {
    font-size: 1.45rem;
    margin-bottom: 1.5rem;
}

.proof-details {
    margin-bottom: 1.5rem;
}

.proof-section-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--on-surface);
}

.proof-details div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--outline-variant);
    font-size: 0.875rem;
}

.proof-details dt {
    font-weight: 600;
    color: var(--on-surface-variant);
    flex-shrink: 0;
}

.proof-details dd {
    font-weight: 600;
    color: var(--on-surface);
    text-align: right;
    word-break: break-word;
}

/* TOOLS GRID */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.tool-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 20px;
    padding: 2.25rem;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.tool-card:hover {
    border-color: var(--primary);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.08);
}

.tool-card h3 {
    font-size: 1.4rem;
    color: var(--on-surface);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.tool-card p {
    font-size: 0.95rem;
    color: var(--on-surface-variant);
    line-height: 1.5;
}

.card-icon {
    font-size: 1.6rem;
}

/* SOLUTIONS / PLANS GRID */
.plans-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    align-items: stretch;
}

@media (min-width: 640px) {
    .plans-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .plans-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.plan-card {
    background: var(--surface);
    border: 1px solid var(--outline);
    border-radius: 20px;
    padding: 2.5rem 1.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.plan-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg), 0 0 30px rgba(99, 102, 241, 0.08);
    border-color: var(--primary);
}

.plan-card.featured {
    border: 2px solid var(--warning);
    box-shadow: 0 10px 25px -5px rgba(245, 166, 35, 0.15);
}

.plan-card.featured:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -5px rgba(245, 166, 35, 0.25);
    border-color: var(--warning);
}

.badge-wrapper {
    position: absolute;
    top: -14px;
    right: 1.5rem;
}

.badge {
    background: var(--warning);
    color: oklch(15% 0.02 75);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.4rem 0.85rem;
    border-radius: var(--radius-pill);
    box-shadow: 0 4px 12px rgba(245, 166, 35, 0.35);
}

.plan-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
    color: var(--on-surface);
}

.price {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--on-surface);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: baseline;
}

.price span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--on-surface-variant);
    margin-left: 0.25rem;
}

.plan-features {
    list-style: none;
    margin-bottom: 2.25rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.plan-features li {
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    line-height: 1.4;
}

.plan-features li::before {
    content: "";
    display: inline-block;
    width: 0.45rem;
    height: 0.75rem;
    border-right: 3px solid var(--success);
    border-bottom: 3px solid var(--success);
    transform: rotate(45deg);
    flex-shrink: 0;
}

.plan-card .button {
    width: 100%;
}

/* FAQ SECTION */
.faq-list {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.faq-list div {
    background: var(--surface);
    border: 1px solid var(--outline-variant);
    border-radius: 16px;
    padding: 1.75rem;
    transition: border-color 0.2s;
}

.faq-list div:hover {
    border-color: var(--outline);
}

.faq-list dt {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--on-surface);
    margin-bottom: 0.5rem;
}

.faq-list dd {
    font-size: 0.95rem;
    color: var(--on-surface-variant);
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 3rem 1.5rem;
    border-top: 1px solid var(--outline-variant);
    font-size: 0.875rem;
    color: var(--on-surface-variant);
    position: relative;
    z-index: 10;
}

/* RESPONSIVE LAYOUT */
@media (min-width: 600px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 768px) {
    .hero {
        grid-template-columns: 1.1fr 0.9fr;
        gap: 4rem;
        align-items: center;
    }
    
    .section-header {
        text-align: center;
    }
    
    .section-lead {
        max-width: 600px;
        margin: 0 auto;
    }
}
