/* ============================================
   RapidGraphic Landing Page Styles
   ============================================ */

/* CSS Variables */
:root {
    --color-primary: #6366f1;
    --color-primary-dark: #4f46e5;
    --color-secondary: #8b5cf6;
    --color-accent: #ec4899;
    --color-success: #10b981;
    --color-warning: #f59e0b;

    --color-gray-50: #fafafa;
    --color-gray-100: #f4f4f5;
    --color-gray-200: #e4e4e7;
    --color-gray-300: #d4d4d8;
    --color-gray-400: #a1a1aa;
    --color-gray-500: #71717a;
    --color-gray-600: #52525b;
    --color-gray-700: #3f3f46;
    --color-gray-800: #27272a;
    --color-gray-900: #18181b;
    --color-gray-950: #09090b;

    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    --transition: all 0.2s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray-900);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

ul {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-gray-900);
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.5rem;
}

.gradient-text {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-family);
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    box-shadow: 0 4px 14px 0 rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px 0 rgba(99, 102, 241, 0.5);
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--color-gray-600);
}

.btn-ghost:hover {
    color: var(--color-gray-900);
}

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

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-gray-600);
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--color-gray-900);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

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

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-gray-900);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--color-gray-100);
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-gray-700);
    margin-bottom: 24px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero h1 {
    margin-bottom: 24px;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    margin-bottom: 32px;
    max-width: 540px;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    gap: 48px;
}

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-900);
}

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

/* Hero Visual */
.hero-visual {
    position: relative;
    z-index: 2;
}

.editor-preview {
    background: var(--color-gray-900);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.editor-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: var(--color-gray-800);
}

.editor-dots {
    display: flex;
    gap: 8px;
}

.editor-dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.editor-dots span:nth-child(1) { background: #ef4444; }
.editor-dots span:nth-child(2) { background: #f59e0b; }
.editor-dots span:nth-child(3) { background: #22c55e; }

.editor-title {
    font-size: 0.8125rem;
    color: var(--color-gray-400);
}

.editor-body {
    display: flex;
    min-height: 320px;
}

.editor-sidebar {
    width: 80px;
    padding: 20px 12px;
    background: var(--color-gray-800);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.block {
    height: 40px;
    border-radius: var(--radius-md);
    opacity: 0.8;
}

.block-purple { background: #8b5cf6; }
.block-blue { background: #3b82f6; }
.block-green { background: #22c55e; }
.block-orange { background: #f59e0b; }

.editor-canvas {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 100%);
}

.preview-graphic {
    width: 100%;
    max-width: 280px;
}

/* Floating Cards */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    font-size: 0.875rem;
    font-weight: 500;
    animation: float 6s ease-in-out infinite;
}

.card-1 {
    top: 20%;
    right: -20px;
    animation-delay: 0s;
}

.card-2 {
    bottom: 20%;
    left: -20px;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Hero Background */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
}

.hero-bg .orb-1 {
    width: 600px;
    height: 600px;
    background: var(--color-primary);
    top: -200px;
    right: -100px;
    opacity: 0.15;
}

.hero-bg .orb-2 {
    width: 400px;
    height: 400px;
    background: var(--color-accent);
    bottom: -100px;
    left: -100px;
    opacity: 0.1;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Logos Section */
.logos-section {
    padding: 60px 0;
    border-top: 1px solid var(--color-gray-100);
    border-bottom: 1px solid var(--color-gray-100);
}

.logos-label {
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-gray-500);
    margin-bottom: 24px;
}

.logos-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 48px;
}

.logo-item {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-gray-400);
}

/* Section Styles */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    color: var(--color-primary);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 100px;
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--color-gray-600);
    margin-top: 16px;
}

/* Features Section */
.features-section {
    padding: 120px 0;
}

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

.feature-card {
    padding: 32px;
    background: var(--color-gray-50);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    background: white;
}

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

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--color-gray-600);
    font-size: 0.9375rem;
}

/* How It Works Section */
.how-section {
    padding: 120px 0;
    background: var(--color-gray-50);
}

.steps-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.step {
    display: grid;
    grid-template-columns: auto 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.step:nth-child(even) {
    direction: rtl;
}

.step:nth-child(even) > * {
    direction: ltr;
}

.step-number {
    font-size: 5rem;
    font-weight: 800;
    color: var(--color-gray-200);
    line-height: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.step-content p {
    color: var(--color-gray-600);
    font-size: 1rem;
}

.step-visual {
    display: flex;
    justify-content: center;
}

.step-mockup {
    width: 200px;
    height: 150px;
    background: white;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.mockup-blocks {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.m-block {
    height: 24px;
    border-radius: var(--radius-sm);
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    opacity: 0.8;
}

.m-block:nth-child(2) { width: 80%; }
.m-block:nth-child(3) { width: 60%; }

.mockup-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.m-input {
    height: 32px;
    background: var(--color-gray-100);
    border-radius: var(--radius-md);
}

.m-color {
    display: flex;
    gap: 8px;
}

.m-color::before,
.m-color::after {
    content: '';
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.m-color::before { background: var(--color-primary); }
.m-color::after { background: var(--color-accent); }

.mockup-export {
    color: var(--color-primary);
}

.mockup-export svg {
    width: 64px;
    height: 64px;
}

/* Use Cases Section */
.usecases-section {
    padding: 120px 0;
}

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

.usecase-card {
    padding: 40px 32px;
    background: white;
    border: 1px solid var(--color-gray-200);
    border-radius: var(--radius-xl);
    transition: var(--transition);
}

.usecase-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg);
}

.usecase-icon {
    color: var(--color-primary);
    margin-bottom: 24px;
}

.usecase-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.usecase-card > p {
    color: var(--color-gray-600);
    font-size: 0.9375rem;
    margin-bottom: 24px;
}

.usecase-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.usecase-features li {
    font-size: 0.875rem;
    color: var(--color-gray-600);
    padding-left: 20px;
    position: relative;
}

.usecase-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

/* Pricing Section */
.pricing-section {
    padding: 120px 0;
    background: var(--color-gray-50);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    align-items: start;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    position: relative;
    border: 1px solid var(--color-gray-200);
    transition: var(--transition);
}

.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--color-primary);
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 100px;
    white-space: nowrap;
}

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

.pricing-header h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    margin-bottom: 8px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--color-gray-900);
}

.price-period {
    font-size: 1rem;
    color: var(--color-gray-500);
}

.pricing-header > p {
    font-size: 0.875rem;
    color: var(--color-gray-500);
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--color-gray-700);
}

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

/* CTA Section */
.cta-section {
    position: relative;
    padding: 120px 0;
    background: linear-gradient(135deg, var(--color-gray-900) 0%, #1e1b4b 100%);
    overflow: hidden;
}

.cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.cta-section h2 {
    color: white;
    margin-bottom: 16px;
}

.cta-section p {
    color: var(--color-gray-400);
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.cta-bg .orb-1 {
    width: 400px;
    height: 400px;
    background: var(--color-primary);
    top: -100px;
    right: 20%;
    opacity: 0.2;
}

.cta-bg .orb-2 {
    width: 300px;
    height: 300px;
    background: var(--color-accent);
    bottom: -100px;
    left: 20%;
    opacity: 0.15;
}

/* Footer */
.footer {
    padding: 80px 0 40px;
    background: var(--color-gray-950);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--color-gray-800);
}

.footer-brand .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--color-gray-500);
    font-size: 0.9375rem;
    max-width: 280px;
}

.footer-links h4 {
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
}

.footer-bottom p {
    color: var(--color-gray-500);
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 16px;
}

.social-links a {
    color: var(--color-gray-500);
    transition: var(--transition);
}

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

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .hero-visual {
        max-width: 500px;
        margin: 0 auto;
    }

    .floating-card {
        display: none;
    }

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

    .pricing-card.featured {
        transform: scale(1);
    }

    .step {
        grid-template-columns: auto 1fr;
    }

    .step-visual {
        display: none;
    }

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

@media (max-width: 768px) {
    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-links.active,
    .nav-actions.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 24px;
        box-shadow: var(--shadow-lg);
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .hero {
        min-height: auto;
        padding: 100px 0 60px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }

    .features-grid,
    .usecases-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .step {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
    }

    .step:nth-child(even) {
        direction: ltr;
    }

    .step-number {
        font-size: 3rem;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .btn-lg {
        width: 100%;
    }

    .logos-grid {
        gap: 24px;
    }

    .logo-item {
        font-size: 0.875rem;
    }
}
