/* ============================================
   Intuitly Brand Styles
   Version 1.0
   ============================================ */

@import url('variables.css');

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background: var(--bg-light);
    color: var(--text-primary);
    line-height: 1.6;
    font-weight: 300;
    font-variation-settings: 'opsz' 16;
}

img {
    max-width: 100%;
    height: auto;
}

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

/* ============================================
   Typography
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 300;
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-variation-settings: 'opsz' 96;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-variation-settings: 'opsz' 48;
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-variation-settings: 'opsz' 28;
    font-weight: 400;
}

p {
    font-variation-settings: 'opsz' 16;
}

.text-large {
    font-size: 1.25rem;
    font-variation-settings: 'opsz' 20;
}

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

/* ============================================
   Layout
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 2rem;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    font-weight: 400;
    margin-bottom: 1rem;
    display: block;
}

.section-title {
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ============================================
   Header & Navigation
   ============================================ */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    transition: var(--transition-medium);
}

.header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 300;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

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

.nav-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.nav-link:hover {
    color: var(--primary);
}

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

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    padding: 0.75rem 1.75rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary {
    background: var(--primary);
    border: 2px solid var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.3);
}

.btn-login {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-login:hover {
    background: var(--primary-light);
    border-color: var(--primary-light);
    color: white;
}

.btn-secondary {
    background: var(--secondary);
    color: white;
}

.btn-secondary:hover {
    background: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-ghost {
    background: var(--gray-100);
    color: var(--text-primary);
}

.btn-ghost:hover {
    background: var(--gray-200);
}

.btn-large {
    padding: 1.125rem 2.25rem;
    font-size: 1rem;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 5rem;
    background: linear-gradient(180deg, var(--surface) 0%, var(--bg-light) 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 100%;
    background: radial-gradient(ellipse, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-overline {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--primary);
    font-weight: 400;
    margin-bottom: 1.5rem;
}

.hero h1 {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hero-tagline {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   Stats Bar
   ============================================ */
.stats-bar {
    background: var(--surface);
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    padding: 3rem 2rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: var(--container-max);
    margin: 0 auto;
    text-align: center;
}

.stat-item {
    padding: 1rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   Features Section
   ============================================ */
.features {
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--surface);
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid var(--gray-100);
    transition: var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary-light);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.12);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary) 100%);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    background: var(--surface);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
}

.steps-container::before {
    content: '';
    position: absolute;
    top: 40px;
    left: calc(16.67% + 2rem);
    right: calc(16.67% + 2rem);
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    z-index: 0;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--surface);
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary);
}

.step:last-child .step-number {
    border-color: var(--secondary);
    color: var(--secondary);
}

.step-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step-description {
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 280px;
    margin: 0 auto;
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing {
    background: var(--bg-light);
}

.pricing-card-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--surface);
    border-radius: 24px;
    padding: 2rem;
    max-width: 480px;
    width: 100%;
    border: 2px solid var(--primary);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.15);
    position: relative;
    overflow: hidden;
}

.pricing-header {
    text-align: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 1rem;
}

.pricing-name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.pricing-amount {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.pricing-currency {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--primary);
}

.pricing-value {
    font-family: var(--font-display);
    font-size: 5rem;
    font-weight: 300;
    color: var(--primary);
    line-height: 1;
    font-variation-settings: 'opsz' 96;
}

.pricing-period {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    max-width: 320px;
    margin: 0 auto;
    line-height: 1.6;
}

.pricing-minimum {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(99, 102, 241, 0.03) 100%);
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    margin-bottom: 1rem;
}

.pricing-minimum-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.pricing-minimum-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-primary);
}

.pricing-minimum-value span {
    font-size: 1rem;
    color: var(--text-muted);
}

.pricing-minimum-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem 0;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--gray-100);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    color: var(--accent);
    flex-shrink: 0;
}

.pricing-cta {
    width: 100%;
}

.pricing-note {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.pricing-note a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.pricing-note a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* ============================================
   CTA Section
   ============================================ */
.cta-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta-section .section-label {
    color: rgba(255, 255, 255, 0.8);
}

.cta-section .section-title {
    color: white;
}

.cta-section .section-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.btn-white {
    background: white;
    color: var(--primary);
}

.btn-white:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.btn-white-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-white-outline:hover {
    background: white;
    color: var(--primary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--text-primary);
    color: white;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    max-width: var(--container-max);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-text {
    color: white;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--gray-400);
    line-height: 1.7;
}

.footer-column h4 {
    font-size: 0.875rem;
    font-weight: 400;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray-400);
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-top: 2rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--gray-400);
}

/* ============================================
   Legal Pages Styles
   Privacy Policy & Terms & Conditions
   ============================================ */

/* Legal Page Layout */
.legal-page {
    padding-top: 6rem;
    padding-bottom: 4rem;
    min-height: 100vh;
    background: var(--bg-light);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Legal Header */
.legal-header {
    text-align: center;
    padding: 3rem 0 4rem;
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 3rem;
}

.legal-header h1 {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 1rem;
    font-variation-settings: 'opsz' 72;
}

.legal-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.legal-meta .separator {
    color: var(--gray-300);
}

/* Legal Content */
.legal-content {
    background: var(--surface);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid var(--gray-100);
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-100);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
    font-variation-settings: 'opsz' 28;
}

.legal-section h3 {
    font-family: var(--font-display);
    font-size: 1.125rem;
    font-weight: 400;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-variation-settings: 'opsz' 20;
}

.legal-section p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

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

.legal-section ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.legal-section li {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.5rem;
}

.legal-section li:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.legal-section a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Definition List */
.definition-list {
    list-style: none;
    padding-left: 0;
}

.definition-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.definition-list li:last-child {
    border-bottom: none;
}

/* Legal Tables */
.legal-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.legal-table th,
.legal-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-100);
}

.legal-table th {
    background: var(--gray-50);
    font-weight: 400;
    color: var(--text-primary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-table td {
    color: var(--text-secondary);
}

.legal-table tr:last-child td {
    border-bottom: none;
}

.legal-table tr:hover td {
    background: var(--gray-50);
}

/* Legal Notice Box */
.legal-notice {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(99, 102, 241, 0.02) 100%);
    border-left: 4px solid var(--primary);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.legal-notice p {
    margin-bottom: 0.75rem;
}

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

/* Contact Email */
.contact-email {
    margin-top: 1rem;
}

.contact-email a {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--primary);
    font-weight: 400;
}

.contact-email a:hover {
    color: var(--primary-dark);
}

/* Responsive */
@media (max-width: 768px) {
    .legal-page {
        padding-top: 5rem;
    }
    
    .legal-container {
        padding: 0 1.5rem;
    }
    
    .legal-header {
        padding: 2rem 0 3rem;
    }
    
    .legal-content {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }
    
    .legal-section {
        margin-bottom: 2rem;
        padding-bottom: 1.5rem;
    }
    
    .legal-table th,
    .legal-table td {
        padding: 0.75rem 1rem;
        font-size: 0.875rem;
    }
    
    .legal-meta {
        flex-direction: column;
        gap: 0.25rem;
    }
    
    .legal-meta .separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 1.5rem 1.25rem;
    }
    
    .legal-section h2 {
        font-size: 1.25rem;
    }
    
    .legal-table-wrapper {
        margin: 1rem -1.25rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
}

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

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

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 4rem 1.5rem;
    }
    
    .header-content {
        padding: 1rem 1.5rem;
    }
    
    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid var(--gray-200);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }
    
    .nav.active {
        display: flex;
    }

    .nav-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .nav-actions .btn {
        width: 100%;
    }

    .mobile-menu-toggle {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .steps-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .steps-container::before {
        display: none;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }
    
    .hero-cta .btn {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
}