/* ── Totail.ai Shared Styles ── */
:root {
    --ink: #0a0a0a;
    --paper: #fafaf8;
    --accent: #1a5f4a;
    --accent-light: #2a8f6a;
    --muted: #6b6b6b;
    --border: #e0e0dc;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'DM Sans', sans-serif; background: var(--paper); color: var(--ink); line-height: 1.6; overflow-x: hidden; }

/* ── Nav ── */
nav { position: fixed; top: 0; width: 100%; padding: 1.5rem 4rem; display: flex; justify-content: space-between; align-items: center; background: rgba(250,250,248,0.9); backdrop-filter: blur(20px); z-index: 100; border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-mark { width: 32px; height: 32px; }
.logo-text { font-family: 'Instrument Serif', serif; font-size: 1.4rem; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); }
.logo-text span { color: var(--accent); font-weight: 500; }
.nav-links { display: flex; gap: 2.5rem; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--ink); }
.dropdown { position: relative; }
.dropdown > a::after { content: ' ▾'; font-size: 0.7em; }
.dropdown-menu { display: none; position: absolute; top: 100%; left: -1.5rem; padding-top: 0.75rem; z-index: 200; }
.dropdown-menu-inner { background: white; border: 1px solid var(--border); border-radius: 8px; padding: 0.5rem 0; min-width: 200px; box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a { display: block; padding: 0.65rem 1.25rem; font-size: 0.88rem; color: var(--muted) !important; transition: all 0.15s; }
.dropdown-menu a:hover { background: rgba(26,95,74,0.05); color: var(--ink) !important; }

/* ── Buttons ── */
.btn { padding: 0.75rem 1.5rem; background: var(--accent); color: #fff !important; border: none; border-radius: 6px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s; text-decoration: none; display: inline-block; font-family: 'DM Sans', sans-serif; }
.btn:hover { background: var(--accent-light); color: #fff !important; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(26,95,74,0.3); }
.btn-outline { background: transparent; color: var(--ink) !important; border: 2px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff !important; border-color: var(--ink); }
.btn-schedule { display: none; }
.btn-ghost { background: transparent; color: var(--ink) !important; border: 2px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff !important; }
.nav-ctas { display: flex; align-items: center; margin-left: 0.75rem; }

/* ── Modal ── */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); backdrop-filter: blur(4px); z-index: 1000; align-items: center; justify-content: center; padding: 1rem; overflow-y: auto; }
.modal-overlay.active { display: flex; }
.modal { background: var(--paper); border-radius: 16px; padding: 2.5rem; max-width: 480px; width: 100%; position: relative; box-shadow: 0 25px 50px rgba(0,0,0,0.25); animation: modalIn 0.3s ease; max-height: 90vh; overflow-y: auto; margin: auto; }
@keyframes modalIn { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); transition: color 0.2s; z-index: 10; }
.modal-close:hover { color: var(--ink); }
.modal h3 { font-family: 'Instrument Serif', serif; font-size: 1.75rem; margin-bottom: 0.5rem; }
.modal > p { color: var(--muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-size: 0.85rem; font-weight: 500; margin-bottom: 0.4rem; color: var(--ink); }
.form-group label .required { color: #e53935; }
.form-group input, .form-group select, .form-group textarea { width: 100%; padding: 0.75rem 1rem; border: 1px solid var(--border); border-radius: 8px; font-size: 0.95rem; font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,95,74,0.1); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b6b6b' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
.modal .btn { width: 100%; padding: 1rem; margin-top: 0.5rem; }
.form-success { text-align: center; padding: 2rem 0; }
.form-success .checkmark { width: 64px; height: 64px; background: rgba(26,95,74,0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; font-size: 2rem; }
.form-success h3 { margin-bottom: 0.5rem; }
.form-success p { color: var(--muted); }

/* ── Shared Section Styles ── */
.section-header { max-width: 600px; margin-bottom: 4rem; position: relative; z-index: 1; }
.section-header h2 { font-family: 'Instrument Serif', serif; font-size: 3rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 1rem; }
.section-header p { color: var(--muted); font-size: 1.1rem; }
.bg-logo { position: absolute; opacity: 0.03; pointer-events: none; z-index: 0; }
.bg-logo svg { width: 100%; height: 100%; }

/* ── Page Hero (subpages) ── */
.page-hero { padding: 10rem 4rem 5rem; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 80%; height: 150%; background: radial-gradient(ellipse at center, rgba(26,95,74,0.08) 0%, transparent 70%); pointer-events: none; }
.page-hero h1 { font-family: 'Instrument Serif', serif; font-size: clamp(2.5rem, 5vw, 3.5rem); font-weight: 400; line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1.5rem; max-width: 700px; position: relative; z-index: 1; }
.page-hero h1 em { font-style: italic; color: var(--accent); }
.page-hero .hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 600px; line-height: 1.7; margin-bottom: 2.5rem; position: relative; z-index: 1; }
.page-hero .hero-tag { display: inline-block; padding: 0.5rem 1rem; background: rgba(26,95,74,0.1); color: var(--accent); border-radius: 100px; font-size: 0.85rem; font-weight: 500; margin-bottom: 2rem; position: relative; z-index: 1; }
.page-hero .hero-buttons { display: flex; gap: 1rem; position: relative; z-index: 1; }

/* ── Content Section ── */
.content-section { padding: 6rem 4rem; }
.content-section.alt { background: rgba(26,95,74,0.03); }
.content-section.dark { background: var(--ink); color: var(--paper); }

/* ── Feature Grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; z-index: 1; }
.feature-card { padding: 2.5rem; background: white; border: 1px solid var(--border); border-radius: 12px; transition: all 0.3s ease; position: relative; overflow: hidden; }
.feature-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: linear-gradient(90deg, var(--accent), var(--accent-light)); transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease; }
.feature-card:hover { border-color: var(--accent); transform: translateY(-8px); box-shadow: 0 20px 40px rgba(26,95,74,0.12); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon { width: 48px; height: 48px; background: rgba(26,95,74,0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 1.5rem; font-size: 1.5rem; }
.feature-card h3 { font-family: 'Instrument Serif', serif; font-size: 1.5rem; font-weight: 400; margin-bottom: 0.75rem; }
.feature-card p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }

/* ── Tool Tags ── */
.tool-tags { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.tool-tag { padding: 0.4rem 1rem; background: rgba(26,95,74,0.08); color: var(--accent); border-radius: 100px; font-size: 0.8rem; font-weight: 500; }
.dark .tool-tag { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); }

/* ── Use Cases ── */
.use-cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; }
.use-case { padding: 2rem; border: 1px solid var(--border); border-radius: 12px; }
.use-case h4 { font-family: 'Instrument Serif', serif; font-size: 1.25rem; font-weight: 400; margin-bottom: 0.5rem; }
.use-case p { color: var(--muted); font-size: 0.95rem; line-height: 1.7; }
.dark .use-case { border-color: rgba(255,255,255,0.1); }
.dark .use-case h4 { color: var(--paper); }
.dark .use-case p { color: rgba(255,255,255,0.5); }

/* ── CTA ── */
.cta { padding: 8rem 4rem; text-align: center; background: linear-gradient(180deg, var(--paper) 0%, rgba(26,95,74,0.05) 100%); }
.cta h2 { font-family: 'Instrument Serif', serif; font-size: 3.5rem; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 1rem; }
.cta p { color: var(--muted); font-size: 1.2rem; margin-bottom: 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer { padding: 4rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
footer p { color: var(--muted); font-size: 0.9rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
    .use-cases { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    nav { padding: 1rem 1.5rem; }
    .nav-links { gap: 1rem; }
    .nav-links a:not(.btn):not(.dropdown > a) { display: none; }
    .dropdown { display: none; }
    .page-hero { padding: 7rem 1.5rem 3rem; }
    .page-hero h1 { font-size: 2.2rem; }
    .page-hero .hero-buttons { flex-direction: column; gap: 0.75rem; }
    .page-hero .hero-buttons .btn { width: 100%; text-align: center; padding: 1rem; }
    .content-section { padding: 3rem 1.5rem; }
    .section-header h2 { font-size: 2rem; }
    .feature-grid, .use-cases { grid-template-columns: 1fr; }
    .cta { padding: 3rem 1.5rem; }
    .cta h2 { font-size: 2rem; }
    .cta-buttons { flex-direction: column; align-items: center; }
    .cta-buttons .btn { width: 100%; max-width: 300px; text-align: center; }
    footer { flex-direction: column; gap: 1rem; text-align: center; padding: 2rem 1.5rem; }
    .modal { padding: 1.5rem; border-radius: 12px; max-height: calc(100vh - 3rem); }
    .modal h3 { font-size: 1.4rem; padding-right: 2rem; }
    .form-group input, .form-group select, .form-group textarea { font-size: 16px; }
    .bg-logo { display: none; }
}
