/* ========================================
   deTime Landing Page — styles.css
   Color: #748f41 olive green + neutrals
   ======================================== */

:root {
    --primary: #748f41;
    --primary-light: #8ba85a;
    --primary-dark: #5e7834;
    --primary-subtle: rgba(116, 143, 65, 0.08);
    --primary-subtle-2: rgba(116, 143, 65, 0.15);

    --text: #1a1a1a;
    --text-secondary: #6b6b6b;
    --text-tertiary: #999999;
    --bg: #fafafa;
    --bg-alt: #f5f5f5;
    --white: #ffffff;
    --border: #e5e5e5;
    --border-light: #f0f0f0;

    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);

    --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
    --container: 1120px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

/* ========================================
   Navigation
   ======================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    transition: box-shadow 0.3s;
}

.nav.scrolled {
    box-shadow: var(--shadow);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
}

.nav-logo-icon {
    font-size: 24px;
}

.nav-logo-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo-highlight {
    color: var(--primary);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s;
}

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

.nav-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: var(--primary);
    color: var(--white);
    border-radius: 100px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: background 0.2s;
}

.nav-cta-btn:hover {
    background: var(--primary-light);
}

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

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s;
}

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 100px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

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

.btn-primary:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(116, 143, 65, 0.3);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    padding: 140px 0 80px;
    background: var(--white);
}

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

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--primary-subtle);
    color: var(--primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
    letter-spacing: 0.3px;
}

.hero-title {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    color: var(--text);
    margin-bottom: 20px;
}

.highlight {
    color: var(--primary);
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Dashboard Mock */
.dashboard-mock {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 28px;
    max-width: 480px;
    margin-left: auto;
}

.mock-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.mock-title {
    font-weight: 600;
    font-size: 16px;
    color: var(--text);
}

.mock-time {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -1px;
}

.mock-categories {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.mock-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.mock-cat::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--cat-width);
    background: var(--cat-color);
    opacity: 0.15;
    border-radius: 6px;
}

.mock-cat-icon {
    font-size: 16px;
    position: relative;
    z-index: 1;
    padding-left: 10px;
}

.mock-cat-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
    position: relative;
    z-index: 1;
    flex: 1;
}

.mock-cat-time {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    padding-right: 10px;
}

.mock-insight {
    border-top: 1px solid var(--border-light);
    padding-top: 16px;
}

.mock-insight-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary);
    display: block;
    margin-bottom: 12px;
}

.mock-insight-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 13px;
    color: var(--text-secondary);
}

.mock-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 100px;
}

.tag-edu {
    background: rgba(85, 239, 196, 0.2);
    color: #00a87d;
}

.tag-ent {
    background: rgba(129, 236, 236, 0.2);
    color: #0097a7;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: 100px 0;
}

.section-title {
    font-size: 36px;
    font-weight: 800;
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px;
    line-height: 1.6;
}

/* ========================================
   Problem Section
   ======================================== */
.problem {
    background: var(--bg);
}

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

.problem-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.problem-icon {
    font-size: 36px;
    margin-bottom: 16px;
}

.problem-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.problem-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Smart Categorization
   ======================================== */
.smart-cat {
    background: var(--white);
}

.cat-demo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 64px;
}

.cat-demo-site {
    background: var(--bg);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
}

.cat-demo-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.cat-demo-domain {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.cat-demo-examples {
    padding: 8px 24px;
}

.cat-demo-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-light);
}

.cat-demo-row:last-child {
    border-bottom: none;
}

.cat-demo-page {
    font-size: 14px;
    color: var(--text-secondary);
    flex: 1;
}

.cat-arrow {
    color: var(--text-tertiary);
    font-size: 14px;
}

.cat-tag {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    background: var(--tag-bg);
    color: var(--text);
    white-space: nowrap;
}

.categories-showcase {
    text-align: center;
}

.categories-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.categories-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.category-chip {
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    background: var(--chip-color);
    color: var(--text);
    transition: transform 0.2s;
}

.category-chip:hover {
    transform: scale(1.05);
}

/* ========================================
   Comparison Table
   ======================================== */
.comparison {
    background: var(--white);
}

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
    min-width: 600px;
}

.compare-table thead th {
    padding: 14px 16px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}

.compare-table thead th:first-child {
    text-align: left;
}

.compare-table tbody td {
    padding: 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
}

.compare-name {
    text-align: left !important;
    font-weight: 500;
    color: var(--text-secondary);
    white-space: nowrap;
}

.compare-brand {
    font-weight: 700 !important;
    color: var(--primary) !important;
}

.compare-highlight {
    background: var(--primary-subtle);
}

.compare-highlight td {
    border-bottom: none;
}

.compare-highlight td:first-child {
    border-radius: 8px 0 0 8px;
}

.compare-highlight td:last-child {
    border-radius: 0 8px 8px 0;
}

.check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.check.yes {
    background: rgba(116, 143, 65, 0.15);
    color: var(--primary);
}

.check.no {
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-tertiary);
}

.check.partial {
    background: rgba(255, 193, 7, 0.15);
    color: #b8860b;
}

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

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

.feature-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 32px;
    border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.feature-icon {
    font-size: 32px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

.step {
    text-align: center;
    max-width: 280px;
    padding: 0 24px;
}

.step-number {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 700;
    margin: 0 auto 20px;
}

.step h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.step p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: var(--border);
    margin-top: 28px;
    flex-shrink: 0;
}

/* ========================================
   FAQ
   ======================================== */
.faq {
    background: var(--bg);
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    text-align: left;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-icon {
    font-size: 20px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 16px;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    background: var(--white);
}

.cta-box {
    text-align: center;
    background: var(--primary-subtle);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    border: 1px solid var(--primary-subtle-2);
}

.cta-box h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.cta-box > p {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    max-width: 480px;
    margin: 0 auto;
}

.cta-input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 15px;
    font-family: var(--font);
    background: var(--white);
    outline: none;
    transition: border-color 0.2s;
}

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

.cta-note {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 16px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-light);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-copy {
    font-size: 14px;
    color: var(--text-tertiary);
}

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

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

    .hero-title {
        font-size: 42px;
    }

    .dashboard-mock {
        margin: 0 auto;
        max-width: 100%;
    }

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

    .cat-demo {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Responsive — Mobile
   ======================================== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-100%);
        opacity: 0;
        pointer-events: none;
        transition: all 0.3s;
    }

    .nav-menu.open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 34px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section {
        padding: 64px 0;
    }

    .section-title {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 15px;
        margin-bottom: 40px;
    }

    .problem-grid,
    .features-list {
        grid-template-columns: 1fr;
    }

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

    .step-connector {
        width: 2px;
        height: 32px;
        margin: 0;
    }

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

    .cta-box {
        padding: 40px 24px;
    }

    .cta-box h2 {
        font-size: 26px;
    }

    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .dashboard-mock {
        padding: 20px;
    }

    .mock-time {
        font-size: 24px;
    }
}
