/* ==========================================
   IDEOFOX WEBSITE - STYLES.CSS
   Modern, minimal design inspired by Linear, Raycast, Notion
   ========================================== */

/* ==========================================
   CSS RESET & BASE
   ========================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: #020617;
    color: #e2e8f0;
    line-height: 1.6;
    font-size: 16px;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    font-weight: 600;
    color: #f8fafc;
}

h1 {
    font-size: 3rem;
    font-weight: 700;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

/* ==========================================
   CONTAINER & LAYOUT
   ========================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.container-legal {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section {
    padding: 6rem 0;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(2, 6, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.1);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 64px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #cbd5e1;
    font-size: 0.9375rem;
    transition: color 0.2s ease;
    position: relative;
}

.nav-link:hover {
    color: #f8fafc;
}

.nav-link--active {
    color: #2563eb;
}

.nav-link--active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #2563eb;
}

/* ==========================================
   BUTTONS
   ========================================== */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: #2563eb;
    color: #fff;
}

.btn-primary:hover {
    background-color: #1d4ed8;
    transform: translateY(-1px);
}

.btn-primary:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.btn-secondary {
    background-color: rgba(226, 232, 240, 0.1);
    color: #e2e8f0;
    border: 1px solid rgba(226, 232, 240, 0.2);
}

.btn-secondary:hover {
    background-color: rgba(226, 232, 240, 0.15);
    border-color: rgba(226, 232, 240, 0.3);
}

.btn-outline {
    background-color: transparent;
    color: #e2e8f0;
    border: 1px solid rgba(226, 232, 240, 0.2);
}

.btn-outline:hover {
    background-color: rgba(226, 232, 240, 0.05);
    border-color: rgba(226, 232, 240, 0.3);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    padding: 8rem 0 6rem;
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0.03), transparent);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: #64748b;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Hero Image */
.hero-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 1rem;
    display: block;
}

/* Product-specific hero */
.hero--product {
    background: linear-gradient(to bottom, rgba(37, 99, 235, 0.05), transparent);
}

.hero--growi {
    background: linear-gradient(to bottom, rgba(13, 148, 136, 0.05), transparent);
}

.product-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

.product-badge--fluditi {
    background-color: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.product-badge--growi {
    background-color: rgba(13, 148, 136, 0.2);
    color: #5eead4;
}

/* Product Mockup Images */
.product-mockup-img {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: 1rem;
    display: block;
}

/* ==========================================
   SECTION TITLES
   ========================================== */
.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

/* ==========================================
   APPS OVERVIEW (HOME)
   ========================================== */
.apps-overview {
    background: rgba(15, 23, 42, 0.5);
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.app-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.app-card:hover {
    border-color: rgba(226, 232, 240, 0.2);
    transform: translateY(-4px);
}

.app-card--fluditi:hover {
    border-color: rgba(168, 85, 247, 0.3);
}

.app-card--growi:hover {
    border-color: rgba(13, 148, 136, 0.3);
}

.app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.app-card-title {
    font-size: 1.75rem;
}

.app-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.app-badge--fluditi {
    background-color: rgba(168, 85, 247, 0.2);
    color: #c084fc;
}

.app-badge--growi {
    background-color: rgba(13, 148, 136, 0.2);
    color: #5eead4;
}

.app-card-description {
    color: #94a3b8;
    margin-bottom: 1.5rem;
    font-size: 1.0625rem;
}

.feature-list {
    margin-bottom: 1.5rem;
}

.feature-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.5rem;
    color: #cbd5e1;
    font-size: 0.9375rem;
}

.feature-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* App Screenshots */
.app-screenshot-img {
    width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    display: block;
    border: 1px solid rgba(226, 232, 240, 0.1);
}

/* ==========================================
   VALUES SECTION
   ========================================== */
.why-section {
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.5));
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.value-card {
    text-align: center;
    padding: 2rem;
}

.value-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.value-title {
    margin-bottom: 1rem;
    color: #f8fafc;
}

.value-text {
    color: #94a3b8;
    line-height: 1.7;
}

/* ==========================================
   PROCESS SECTION
   ========================================== */
.process-section {
    background: rgba(15, 23, 42, 0.5);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.process-step {
    position: relative;
}

.process-number {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #2563eb, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.process-title {
    margin-bottom: 0.75rem;
    color: #f8fafc;
}

.process-text {
    color: #94a3b8;
    line-height: 1.7;
}

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(168, 85, 247, 0.05));
}

.cta-box {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.1);
    border-radius: 1rem;
}

.cta-title {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.cta-text {
    color: #94a3b8;
    margin-bottom: 2rem;
    font-size: 1.125rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   PROBLEM / SOLUTION (FLUDITI)
   ========================================== */
.problem-solution {
    background: rgba(15, 23, 42, 0.3);
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.split-side h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
}

.text-large {
    font-size: 1.125rem;
    color: #94a3b8;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.problem-list li,
.solution-list li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}

.problem-list li::before {
    content: '×';
    position: absolute;
    left: 0;
    color: #ef4444;
    font-weight: bold;
    font-size: 1.25rem;
}

.solution-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.25rem;
}

/* ==========================================
   FEATURES GRID
   ========================================== */
.features-section {
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.5), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: rgba(226, 232, 240, 0.2);
    transform: translateY(-4px);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-title {
    margin-bottom: 0.75rem;
    color: #f8fafc;
    font-size: 1.25rem;
}

.feature-description {
    color: #94a3b8;
    line-height: 1.7;
}

/* ==========================================
   HOW IT WORKS
   ========================================== */
.how-it-works {
    background: rgba(15, 23, 42, 0.3);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    text-align: center;
    padding: 2rem;
    background: rgba(30, 41, 59, 0.3);
    border: 1px solid rgba(226, 232, 240, 0.1);
    border-radius: 1rem;
}

.step-emoji {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.step-title {
    margin-bottom: 0.75rem;
    color: #f8fafc;
    font-size: 1.5rem;
}

.step-text {
    color: #94a3b8;
    line-height: 1.7;
}

/* ==========================================
   PRICING SECTION
   ========================================== */
.pricing-section {
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.5));
}

.pricing-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.1);
    border-radius: 1rem;
}

.pricing-title {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.pricing-text {
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.pricing-features {
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.pricing-features li {
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.75rem;
    color: #cbd5e1;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

/* ==========================================
   WAITLIST FORM
   ========================================== */
.waitlist-form {
    margin-top: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.email-form {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.email-input {
    flex: 1;
    padding: 0.875rem 1.25rem;
    background: rgba(30, 41, 59, 0.8);
    border: 1px solid rgba(226, 232, 240, 0.2);
    border-radius: 0.5rem;
    color: #e2e8f0;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
}

.email-input:focus {
    outline: none;
    border-color: #2563eb;
    background: rgba(30, 41, 59, 1);
}

.email-input::placeholder {
    color: #64748b;
}

.form-note {
    text-align: center;
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0;
}

/* ==========================================
   GROWI-SPECIFIC SECTIONS
   ========================================== */
.what-section {
    background: rgba(15, 23, 42, 0.3);
}

.what-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.what-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.what-card:hover {
    border-color: rgba(13, 148, 136, 0.3);
    transform: translateY(-4px);
}

.what-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.what-title {
    margin-bottom: 1rem;
    color: #f8fafc;
    font-size: 1.25rem;
}

.what-text {
    color: #94a3b8;
    line-height: 1.7;
}

.features-grid-alt {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-card-alt {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.1);
    border-radius: 1rem;
    padding: 2rem;
    transition: all 0.3s ease;
}

.feature-card-alt:hover {
    border-color: rgba(13, 148, 136, 0.3);
    transform: translateY(-4px);
}

.feature-icon-alt {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.feature-title-alt {
    margin-bottom: 0.75rem;
    color: #f8fafc;
    font-size: 1.25rem;
}

.feature-description-alt {
    color: #94a3b8;
    line-height: 1.7;
}

/* ==========================================
   INSIGHT DEMO (GROWI)
   ========================================== */
.insight-section {
    background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.5));
}

.insight-demo {
    max-width: 700px;
    margin: 0 auto;
}

.chat-bubble {
    display: flex;
    gap: 1rem;
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(13, 148, 136, 0.2);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 1rem;
}

.chat-avatar {
    font-size: 2.5rem;
    flex-shrink: 0;
}

.chat-content {
    flex: 1;
}

.chat-text {
    color: #cbd5e1;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.chat-text:last-child {
    margin-bottom: 0;
}

.insight-caption {
    text-align: center;
    color: #64748b;
    font-size: 0.875rem;
}

/* ==========================================
   SECURITY SECTION (GROWI)
   ========================================== */
.security-section {
    background: rgba(15, 23, 42, 0.5);
}

.security-box {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(226, 232, 240, 0.1);
    border-radius: 1rem;
}

.security-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.security-title {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.security-text {
    color: #94a3b8;
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* ==========================================
   LEGAL PAGES
   ========================================== */
.legal-section {
    padding: 4rem 0;
}

.legal-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.legal-updated {
    color: #64748b;
    margin-bottom: 3rem;
    font-size: 0.9375rem;
}

.legal-content {
    line-height: 1.8;
}

.legal-block {
    margin-bottom: 3rem;
}

.legal-block h2 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: #f8fafc;
}

.legal-block p {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.legal-list {
    margin: 1rem 0 1rem 2rem;
}

.legal-list li {
    list-style: disc;
    color: #cbd5e1;
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
    background: rgba(15, 23, 42, 0.8);
    border-top: 1px solid rgba(226, 232, 240, 0.1);
    padding: 3rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.875rem;
}

.footer-links,
.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-link {
    color: #94a3b8;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

.footer-link:hover {
    color: #f8fafc;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablets and below */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .container {
        padding: 0 1.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    /* Navigation */
    .nav {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem 1.5rem;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }

    /* Hero */
    .hero {
        padding: 4rem 0 3rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-cta .btn {
        width: 100%;
    }

    /* Apps Grid */
    .apps-grid {
        grid-template-columns: 1fr;
    }

    /* Values Grid */
    .values-grid {
        grid-template-columns: 1fr;
    }

    /* Process Timeline */
    .process-timeline {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
    }

    .features-grid-alt {
        grid-template-columns: 1fr;
    }

    /* Steps Grid */
    .steps-grid {
        grid-template-columns: 1fr;
    }

    /* What Grid */
    .what-grid {
        grid-template-columns: 1fr;
    }

    /* Split Content */
    .split-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-links,
    .footer-social {
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Legal */
    .legal-title {
        font-size: 2rem;
    }

    .legal-block h2 {
        font-size: 1.5rem;
    }
}

/* Mobile phones */
@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .nav {
        padding: 1rem;
    }

    .hero-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.875rem;
    }

    .btn-large {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }

    .email-form {
        flex-direction: column;
    }

    .email-input {
        width: 100%;
    }
}

/* ==========================================
   FOCUS & ACCESSIBILITY
   ========================================== */
*:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}