/* ============================================
   ComunAI Corporate Website — Stylesheet
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors */
    --color-primary: #4F46E5;
    --color-primary-light: #6366F1;
    --color-primary-dark: #3730A3;
    --color-secondary: #0D9488;
    --color-secondary-light: #14B8A6;
    --color-accent: #F59E0B;

    /* Neutrals */
    --color-white: #FFFFFF;
    --color-gray-50: #F8FAFC;
    --color-gray-100: #F1F5F9;
    --color-gray-200: #E2E8F0;
    --color-gray-300: #CBD5E1;
    --color-gray-400: #94A3B8;
    --color-gray-500: #64748B;
    --color-gray-600: #475569;
    --color-gray-700: #334155;
    --color-gray-800: #1E293B;
    --color-gray-900: #0F172A;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;

    /* Spacing */
    --section-padding: 120px;
    --container-width: 1200px;

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-700);
    background: var(--color-white);
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.section {
    padding: var(--section-padding) 0;
}

/* --- Typography --- */
.section__eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section__title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-gray-900);
    margin-bottom: 20px;
}

.section__subtitle {
    font-size: 18px;
    line-height: 1.7;
    color: var(--color-gray-500);
    max-width: 600px;
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    white-space: nowrap;
}

.btn--primary {
    background: var(--color-primary);
    color: var(--color-white);
    box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);
}

.btn--primary:hover {
    background: var(--color-primary-dark);
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4);
    transform: translateY(-1px);
}

.btn--ghost {
    background: transparent;
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

/* ============================================
   Navigation
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-base);
}

.nav--scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 12px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.nav__container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 300;
    color: var(--color-white);
    transition: color var(--transition-base);
    letter-spacing: -0.02em;
}

.nav__logo strong {
    font-weight: 700;
}

.nav--scrolled .nav__logo {
    color: var(--color-gray-900);
}

.nav__logo-icon {
    width: 36px;
    height: 36px;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav__link {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    transition: color var(--transition-fast);
    letter-spacing: 0.01em;
}

.nav__link:hover {
    color: var(--color-white);
}

.nav--scrolled .nav__link {
    color: var(--color-gray-500);
}

.nav--scrolled .nav__link:hover {
    color: var(--color-gray-900);
}

.nav__link--cta {
    padding: 10px 22px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--color-white);
    font-weight: 500;
}

.nav__link--cta:hover {
    background: rgba(255, 255, 255, 0.2);
}

.nav--scrolled .nav__link--cta {
    background: var(--color-primary);
    color: var(--color-white);
}

.nav--scrolled .nav__link--cta:hover {
    background: var(--color-primary-dark);
    color: var(--color-white);
}

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-white);
    transition: all var(--transition-base);
    border-radius: 1px;
}

.nav--scrolled .nav__toggle span {
    background: var(--color-gray-900);
}

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 50%, rgba(79, 70, 229, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 80% 30%, rgba(13, 148, 136, 0.1) 0%, transparent 50%),
        linear-gradient(160deg, #0F172A 0%, #1E293B 30%, #1a1f3a 60%, #0F172A 100%);
}

.hero__particles {
    position: absolute;
    inset: 0;
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.hero__eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-secondary-light);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.hero__title {
    font-family: var(--font-serif);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 600;
    line-height: 1.1;
    color: var(--color-white);
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}

.hero__title--accent {
    background: linear-gradient(135deg, var(--color-secondary-light), var(--color-primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__subtitle {
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.7;
    color: var(--color-gray-400);
    margin-bottom: 40px;
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
}

.hero__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.8s forwards;
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-gray-500);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeIn 1s ease 1.2s forwards;
}

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

/* ============================================
   Mission
   ============================================ */
.mission {
    background: var(--color-gray-50);
}

.mission__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.mission__description {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-gray-600);
    margin-bottom: 16px;
}

.mission__values {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.value-card {
    background: var(--color-white);
    padding: 32px;
    border-radius: 12px;
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-base);
}

.value-card:hover {
    border-color: var(--color-primary-light);
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.08);
    transform: translateY(-2px);
}

.value-card__icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.value-card__icon svg {
    width: 100%;
    height: 100%;
}

.value-card__title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 8px;
}

.value-card__text {
    font-size: 15px;
    color: var(--color-gray-500);
    line-height: 1.6;
}

/* ============================================
   Approach
   ============================================ */
.approach__header {
    text-align: center;
    margin-bottom: 80px;
}

.approach__header .section__subtitle {
    margin: 0 auto;
}

.approach__pillars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.pillar {
    position: relative;
}

.pillar__number {
    font-size: 48px;
    font-weight: 700;
    color: var(--color-gray-100);
    line-height: 1;
    margin-bottom: 20px;
    font-family: var(--font-serif);
}

.pillar__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 12px;
}

.pillar__text {
    font-size: 15px;
    color: var(--color-gray-500);
    line-height: 1.7;
}

.pillar__line {
    position: absolute;
    top: 30px;
    right: -20px;
    width: 40px;
    height: 1px;
    background: var(--color-gray-200);
}

.pillar:last-child .pillar__line {
    display: none;
}

/* ============================================
   Products
   ============================================ */
.products {
    background: var(--color-gray-50);
}

.products__header {
    text-align: center;
    margin-bottom: 64px;
}

.products__header .section__subtitle {
    margin: 0 auto;
}

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

.product-card {
    position: relative;
    background: var(--color-white);
    padding: 40px 32px;
    border-radius: 16px;
    border: 1px solid var(--color-gray-200);
    transition: all var(--transition-slow);
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 16px 16px 0 0;
    transition: height var(--transition-slow);
}

.product-card--health::before {
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
}

.product-card--focus::before {
    background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
}

.product-card--grow::before {
    background: linear-gradient(90deg, #16A34A, #4ADE80);
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.product-card:hover::before {
    height: 4px;
}

.product-card__badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.product-card--health .product-card__badge {
    background: rgba(13, 148, 136, 0.1);
    color: var(--color-secondary);
}

.product-card--focus .product-card__badge {
    background: rgba(79, 70, 229, 0.1);
    color: var(--color-primary);
}

.product-card--grow .product-card__badge {
    background: rgba(22, 163, 74, 0.1);
    color: #16A34A;
}

.product-card__badge--live {
    background: #16A34A !important;
    color: #fff !important;
    animation: pulse-live 2s ease-in-out infinite;
}

@keyframes pulse-live {
    0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
}

.product-card__cta {
    display: inline-block;
    margin-top: 20px;
    text-decoration: none;
    text-align: center;
}

.btn--grow {
    background: #16A34A;
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn--grow:hover {
    background: #15803d;
    transform: translateY(-2px);
    color: #fff;
}

.product-card--launched {
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.product-card__brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    margin-bottom: 24px;
}

.product-card__brand-logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
}

.product-card__brand-name {
    font-family: var(--font-serif);
    font-size: 1.65rem;
    font-weight: 700;
    color: #22c55e;
}

.product-card__brand-name--focus {
    font-family: var(--font-sans);
    font-size: 1.35rem;
    color: var(--color-primary);
}

.product-card__brand-logo--focus {
    color: var(--color-primary);
}

.product-card__badge--focus-live {
    background: var(--color-primary) !important;
}

.btn--focus {
    background: var(--color-primary);
    color: #fff;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn--focus:hover {
    background: var(--color-primary-light);
    transform: translateY(-2px);
    color: #fff;
}


.product-card__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 24px;
}

.product-card--health .product-card__icon {
    color: var(--color-secondary);
}

.product-card--focus .product-card__icon {
    color: var(--color-primary);
}

.product-card--grow .product-card__icon {
    color: #16A34A;
}

.product-card__icon svg {
    width: 100%;
    height: 100%;
}

.product-card__title {
    font-family: var(--font-serif);
    font-size: 26px;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 16px;
}

.product-card__text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-gray-500);
    margin-bottom: 24px;
}

.product-card__features {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.product-card__features li {
    font-size: 14px;
    color: var(--color-gray-600);
    padding-left: 24px;
    position: relative;
}

.product-card__features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 7px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.product-card--health .product-card__features li::before {
    background: var(--color-secondary-light);
    opacity: 0.5;
}

.product-card--focus .product-card__features li::before {
    background: var(--color-primary-light);
    opacity: 0.5;
}

.product-card--grow .product-card__features li::before {
    background: #4ADE80;
    opacity: 0.5;
}

/* ============================================
   Stats
   ============================================ */
.stats {
    padding: 80px 0;
    background: var(--color-gray-900);
}

.stats__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 48px;
    font-weight: 700;
    font-family: var(--font-serif);
    color: var(--color-white);
    line-height: 1;
    margin-bottom: 8px;
}

.stat__label {
    font-size: 14px;
    color: var(--color-gray-400);
    letter-spacing: 0.02em;
}

/* ============================================
   About
   ============================================ */
.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about__text {
    font-size: 17px;
    line-height: 1.8;
    color: var(--color-gray-600);
    margin-bottom: 16px;
}

.about__visual {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.about__card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: var(--color-gray-50);
    border-radius: 12px;
    border: 1px solid var(--color-gray-100);
    transition: all var(--transition-base);
}

.about__card:hover {
    background: var(--color-white);
    border-color: var(--color-gray-200);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.about__card-icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    color: var(--color-primary);
}

.about__card-icon svg {
    width: 100%;
    height: 100%;
}

.about__card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-gray-900);
    margin-bottom: 4px;
}

.about__card-text {
    font-size: 14px;
    color: var(--color-gray-500);
}

/* ============================================
   CTA / Contact
   ============================================ */
.cta {
    background: linear-gradient(160deg, #0F172A 0%, #1a1f3a 50%, #1E293B 100%);
    text-align: center;
}

.cta .section__eyebrow {
    color: var(--color-secondary-light);
}

.cta__content {
    max-width: 600px;
    margin: 0 auto;
}

.cta__title {
    font-family: var(--font-serif);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.cta__text {
    font-size: 17px;
    line-height: 1.7;
    color: var(--color-gray-400);
    margin-bottom: 40px;
}

.cta__form {
    margin-bottom: 32px;
}

.cta__form-row {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto;
}

.cta__input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--color-gray-700);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-white);
    font-family: var(--font-sans);
    font-size: 15px;
    transition: border-color var(--transition-fast);
    outline: none;
}

.cta__input::placeholder {
    color: var(--color-gray-500);
}

.cta__input:focus {
    border-color: var(--color-primary);
}

.btn--form {
    flex-shrink: 0;
}

.cta__disclaimer {
    font-size: 13px;
    color: var(--color-gray-500);
    margin-top: 12px;
}

.cta__alt {
    padding-top: 24px;
    border-top: 1px solid var(--color-gray-700);
}

.cta__alt p {
    font-size: 14px;
    color: var(--color-gray-500);
    margin-bottom: 8px;
}

.cta__email {
    font-size: 18px;
    font-weight: 500;
    color: var(--color-primary-light);
    transition: color var(--transition-fast);
}

.cta__email:hover {
    color: var(--color-white);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    padding: 64px 0 40px;
    background: var(--color-gray-900);
    border-top: 1px solid var(--color-gray-800);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer .nav__logo {
    color: var(--color-white);
    margin-bottom: 12px;
}

.footer__tagline {
    font-size: 14px;
    color: var(--color-gray-500);
    line-height: 1.6;
}

.footer__heading {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-gray-400);
    margin-bottom: 16px;
}

.footer__link {
    display: block;
    font-size: 14px;
    color: var(--color-gray-500);
    margin-bottom: 10px;
    transition: color var(--transition-fast);
}

.footer__link:hover {
    color: var(--color-white);
}

.footer__bottom {
    padding-top: 32px;
    border-top: 1px solid var(--color-gray-800);
}

.footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
}

.footer__legal p {
    font-size: 13px;
    color: var(--color-gray-600);
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .approach__pillars {
        grid-template-columns: 1fr 1fr;
        gap: 48px 40px;
    }

    .pillar__line {
        display: none;
    }

    .products__grid {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .products__grid .product-card:last-child {
        grid-column: 1 / -1;
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 64px;
    }

    .nav__links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-white);
        padding: 24px;
        gap: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        border-radius: 0 0 12px 12px;
    }

    .nav__links--open {
        display: flex;
    }

    .nav__link {
        color: var(--color-gray-600);
        padding: 12px 0;
        border-bottom: 1px solid var(--color-gray-100);
        width: 100%;
    }

    .nav__link:last-child {
        border-bottom: none;
    }

    .nav__link--cta {
        background: var(--color-primary);
        color: var(--color-white);
        text-align: center;
        margin-top: 12px;
        border-radius: 8px;
        padding: 12px 0;
    }

    .nav__toggle {
        display: flex;
    }

    .hero__title {
        font-size: clamp(32px, 8vw, 48px);
    }

    .mission__grid,
    .about__grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .products__grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .approach__pillars {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats__grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

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

    .cta__form-row {
        flex-direction: column;
    }

    .footer__legal {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .stats__grid {
        grid-template-columns: 1fr 1fr;
    }

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

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .hero__actions .btn {
        width: 100%;
        max-width: 280px;
    }
}
