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

:root {
    --primary: #4F46E5;
    --primary-dark: #4338CA;
    --primary-light: #EEF2FF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --green: #10B981;
    --green-light: #D1FAE5;
    --blue: #3B82F6;
    --blue-light: #DBEAFE;
    --purple: #8B5CF6;
    --purple-light: #EDE9FE;
    --orange: #F59E0B;
    --orange-light: #FEF3C7;
    --pink: #EC4899;
    --pink-light: #FCE7F3;
    --teal: #14B8A6;
    --teal-light: #CCFBF1;
    --red: #EF4444;
    --red-light: #FEE2E2;
    --radius: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
    color: var(--gray-800);
    line-height: 1.6;
    background-color: #fff;
}

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

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

ul {
    list-style: none;
}

/* ========== Container ========== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background-color: var(--primary);
    color: #fff;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
}

.btn-outline {
    background-color: transparent;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
}
.btn-outline:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-400);
}

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

.btn-white {
    background-color: #fff;
    color: var(--primary);
}
.btn-white:hover {
    background-color: var(--gray-100);
}

.btn-ghost-white {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
}
.btn-ghost-white:hover {
    background-color: rgba(255,255,255,0.1);
}

.btn-lg {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-sm {
    padding: 0.375rem 0.875rem;
    font-size: 0.813rem;
}

/* ========== Navbar ========== */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--gray-200);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

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

.nav-links {
    display: flex;
    gap: 0.25rem;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: all 0.2s;
}
.nav-link:hover {
    color: var(--gray-900);
    background-color: var(--gray-100);
}
.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--gray-600);
}

/* ========== Hero ========== */
.hero {
    text-align: center;
    padding: 5rem 0 3rem;
    background: linear-gradient(180deg, var(--primary-light) 0%, #fff 100%);
}

.hero-badge {
    display: inline-block;
    padding: 0.375rem 1rem;
    font-size: 0.813rem;
    font-weight: 600;
    color: var(--primary);
    background-color: rgba(79, 70, 229, 0.1);
    border: 1px solid rgba(79, 70, 229, 0.2);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 1.5rem;
}

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

.hero-description {
    font-size: 1.2rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

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

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
}

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

/* ========== Hero Image (Mock Dashboard) ========== */
.hero-image-section {
    padding: 0 0 4rem;
}

.hero-image-wrapper {
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
    border: 1px solid var(--gray-200);
}

.mock-dashboard {
    background: #fff;
}

.mock-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
}

.mock-dots {
    display: flex;
    gap: 0.375rem;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.dot.red { background: #EF4444; }
.dot.yellow { background: #F59E0B; }
.dot.green { background: #10B981; }

.mock-url {
    flex: 1;
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-500);
    background: #fff;
    padding: 0.375rem 1rem;
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
}

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

.mock-sidebar {
    width: 180px;
    background: var(--gray-800);
    padding: 1rem 0;
    flex-shrink: 0;
}

.mock-nav-item {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    color: var(--gray-400);
    cursor: pointer;
}
.mock-nav-item:hover { color: #fff; }
.mock-nav-item.active {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-left: 3px solid var(--primary);
}

.mock-content {
    flex: 1;
    padding: 1.5rem;
    background: var(--gray-50);
}

.mock-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mock-card {
    padding: 1.25rem;
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.mock-card.blue { border-left: 4px solid var(--blue); }
.mock-card.green { border-left: 4px solid var(--green); }
.mock-card.purple { border-left: 4px solid var(--purple); }

.mock-card-title {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
}

.mock-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
}

.mock-chart {
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.mock-chart-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 1rem;
}

.mock-chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 0.75rem;
    height: 120px;
}

.mock-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary), #818CF8);
    border-radius: 4px 4px 0 0;
    min-height: 8px;
}

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

.logos-title {
    text-align: center;
    font-size: 0.875rem;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

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

.logo-item {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-300);
    letter-spacing: 0.02em;
}

/* ========== Section Common ========== */
.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.section-description {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ========== Features ========== */
.features-section {
    padding: 5rem 0;
}

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

.feature-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}
.feature-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--gray-300);
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.feature-icon.blue { background: var(--blue-light); color: var(--blue); }
.feature-icon.green { background: var(--green-light); color: var(--green); }
.feature-icon.purple { background: var(--purple-light); color: var(--purple); }
.feature-icon.orange { background: var(--orange-light); color: var(--orange); }
.feature-icon.pink { background: var(--pink-light); color: var(--pink); }
.feature-icon.teal { background: var(--teal-light); color: var(--teal); }

.feature-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.feature-description {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.7;
}

/* ========== Testimonials ========== */
.testimonials-section {
    padding: 5rem 0;
    background-color: var(--gray-50);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: #fff;
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.testimonial-rating {
    color: var(--orange);
    font-size: 1rem;
    margin-bottom: 1rem;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--gray-800);
}

.testimonial-role {
    font-size: 0.8rem;
    color: var(--gray-500);
}

/* ========== CTA ========== */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    text-align: center;
    color: #fff;
}

.cta-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

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

/* ========== Footer ========== */
.footer {
    padding: 4rem 0 2rem;
    background: var(--gray-900);
    color: var(--gray-400);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-brand .nav-logo {
    color: #fff;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 0.9rem;
    line-height: 1.6;
}

.footer-links h4 {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

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

.footer-links a {
    font-size: 0.875rem;
    color: var(--gray-400);
    transition: color 0.2s;
}
.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--gray-700);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.footer-legal {
    display: flex;
    gap: 1.5rem;
}

.footer-legal a {
    color: var(--gray-500);
    transition: color 0.2s;
}
.footer-legal a:hover {
    color: #fff;
}

/* ========== Pricing ========== */
.pricing-section {
    padding: 5rem 0;
}

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

.pricing-card {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: 2.5rem;
    position: relative;
    background: #fff;
    transition: all 0.2s;
}
.pricing-card:hover {
    box-shadow: var(--shadow-lg);
}
.pricing-card.popular {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.pricing-description {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.pricing-price {
    margin-bottom: 1.5rem;
}

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

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

.pricing-features {
    margin-bottom: 2rem;
}

.pricing-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.pricing-feature .check {
    color: var(--green);
    font-weight: 700;
}

.pricing-card .btn {
    width: 100%;
}

/* ========== Features Page ========== */
.features-hero {
    padding: 4rem 0;
    text-align: center;
    background: linear-gradient(180deg, var(--primary-light) 0%, #fff 100%);
}

.features-detail-section {
    padding: 4rem 0;
}

.feature-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 5rem;
}

.feature-detail.reverse {
    direction: rtl;
}
.feature-detail.reverse > * {
    direction: ltr;
}

.feature-detail-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.feature-detail-content p {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.feature-detail-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.feature-detail-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.feature-detail-list .check {
    color: var(--green);
    font-weight: 700;
}

.feature-detail-visual {
    background: var(--gray-50);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========== Dashboard Page ========== */
.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 64px 1fr;
    grid-template-areas:
        "header header"
        "sidebar main";
    min-height: 100vh;
}

.dashboard-header {
    grid-area: header;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    position: sticky;
    top: 0;
    z-index: 50;
}

.dashboard-header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-search {
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius);
    font-size: 0.875rem;
    width: 300px;
    background: var(--gray-50);
}
.dashboard-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.notification-btn {
    position: relative;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    color: var(--gray-500);
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--red);
    border-radius: 50%;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.75rem;
}

.dashboard-sidebar {
    grid-area: sidebar;
    background: var(--gray-50);
    border-right: 1px solid var(--gray-200);
    padding: 1.5rem 0;
    overflow-y: auto;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: all 0.15s;
    cursor: pointer;
}
.sidebar-item:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}
.sidebar-item.active {
    background: var(--primary-light);
    color: var(--primary);
    font-weight: 600;
}

.sidebar-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dashboard-main {
    grid-area: main;
    padding: 2rem;
    background: var(--gray-50);
    overflow-y: auto;
}

.dashboard-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.dashboard-subtitle {
    font-size: 0.9rem;
    color: var(--gray-500);
    margin-bottom: 2rem;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
}

.dashboard-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.dashboard-card-label {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 500;
}

.dashboard-card-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-card-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.25rem;
}

.dashboard-card-change {
    font-size: 0.8rem;
    font-weight: 500;
}
.dashboard-card-change.positive { color: var(--green); }
.dashboard-card-change.negative { color: var(--red); }

.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-panel {
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--gray-200);
    overflow: hidden;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-100);
}

.panel-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-800);
}

.panel-body {
    padding: 1.5rem;
}

/* Chart */
.chart-container {
    height: 200px;
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
    padding-top: 1rem;
}

.chart-bar-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.chart-bar {
    width: 100%;
    border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, var(--primary), #818CF8);
    min-height: 4px;
}

.chart-label {
    font-size: 0.7rem;
    color: var(--gray-400);
}

/* Activity list */
.activity-list {
    display: flex;
    flex-direction: column;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.activity-item:last-child {
    border-bottom: none;
}

.activity-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-top: 6px;
    flex-shrink: 0;
}
.activity-dot.blue { background: var(--blue); }
.activity-dot.green { background: var(--green); }
.activity-dot.orange { background: var(--orange); }
.activity-dot.purple { background: var(--purple); }

.activity-text {
    font-size: 0.85rem;
    color: var(--gray-700);
    line-height: 1.5;
}

.activity-time {
    font-size: 0.75rem;
    color: var(--gray-400);
    margin-top: 0.125rem;
}

/* Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th {
    text-align: left;
    padding: 0.75rem 1.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: var(--gray-50);
    border-bottom: 1px solid var(--gray-200);
}

.data-table td {
    padding: 0.875rem 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

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

.status-badge {
    display: inline-flex;
    padding: 0.25rem 0.625rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
}
.status-badge.active { background: var(--green-light); color: #065F46; }
.status-badge.pending { background: var(--orange-light); color: #92400E; }
.status-badge.review { background: var(--blue-light); color: #1E40AF; }
.status-badge.done { background: var(--gray-100); color: var(--gray-600); }

.priority-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8rem;
}

.priority-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}
.priority-dot.high { background: var(--red); }
.priority-dot.medium { background: var(--orange); }
.priority-dot.low { background: var(--green); }

/* ========== Docs Page ========== */
.docs-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 64px);
}

.docs-sidebar {
    border-right: 1px solid var(--gray-200);
    padding: 2rem 0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.docs-nav-group {
    margin-bottom: 1.5rem;
}

.docs-nav-title {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    padding: 0 1.5rem;
    margin-bottom: 0.5rem;
}

.docs-nav-link {
    display: block;
    padding: 0.375rem 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
    transition: all 0.15s;
}
.docs-nav-link:hover {
    color: var(--primary);
}
.docs-nav-link.active {
    color: var(--primary);
    font-weight: 600;
    background: var(--primary-light);
    border-right: 2px solid var(--primary);
}

.docs-content {
    padding: 2.5rem 3rem;
    max-width: 800px;
}

.docs-content h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.docs-content h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.docs-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.docs-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.docs-content code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    background: var(--gray-100);
    padding: 0.125rem 0.375rem;
    border-radius: 4px;
    color: var(--pink);
}

.docs-content pre {
    background: var(--gray-900);
    color: #E5E7EB;
    padding: 1.25rem;
    border-radius: var(--radius);
    overflow-x: auto;
    margin-bottom: 1.5rem;
    font-size: 0.85rem;
    line-height: 1.6;
}

.docs-content pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.docs-callout {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.6;
}
.docs-callout.info {
    background: var(--blue-light);
    border-left: 4px solid var(--blue);
    color: #1E40AF;
}
.docs-callout.warning {
    background: var(--orange-light);
    border-left: 4px solid var(--orange);
    color: #92400E;
}

/* ========== Settings / Form Page ========== */
.settings-section {
    margin-bottom: 2.5rem;
}

.settings-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-800);
    margin-bottom: 0.25rem;
}

.settings-description {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--gray-700);
    margin-bottom: 0.375rem;
}

.form-input {
    width: 100%;
    max-width: 400px;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-800);
    transition: all 0.15s;
}
.form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-select {
    width: 100%;
    max-width: 400px;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-800);
    background: #fff;
    appearance: auto;
}

.form-textarea {
    width: 100%;
    max-width: 400px;
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius);
    font-size: 0.9rem;
    color: var(--gray-800);
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
    cursor: pointer;
}

.form-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.toggle-switch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--gray-100);
}

.toggle-switch-label {
    font-size: 0.9rem;
    color: var(--gray-700);
}

.toggle-switch-desc {
    font-size: 0.8rem;
    color: var(--gray-400);
    margin-top: 0.125rem;
}

.toggle {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    border-radius: 24px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.toggle-slider::before {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    left: 2px;
    bottom: 2px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
}

.toggle input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* ========== Modal ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 200;
    align-items: center;
    justify-content: center;
}
.modal-overlay.show {
    display: flex;
}

.modal {
    background: #fff;
    border-radius: var(--radius-xl);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
}

.modal-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-900);
}

.modal-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.25rem;
    color: var(--gray-400);
    font-size: 1.5rem;
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid var(--gray-200);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .features-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dashboard-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions {
        display: none;
    }
    .mobile-menu-btn {
        display: flex;
    }
    .hero-title {
        font-size: 2.5rem;
    }
    .hero-stats {
        gap: 2rem;
    }
    .features-grid,
    .testimonials-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .feature-detail {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .feature-detail.reverse {
        direction: ltr;
    }
    .mock-sidebar {
        display: none;
    }
    .mock-cards {
        grid-template-columns: 1fr;
    }
    .dashboard-layout {
        grid-template-columns: 1fr;
        grid-template-areas:
            "header"
            "main";
    }
    .dashboard-sidebar {
        display: none;
    }
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .docs-layout {
        grid-template-columns: 1fr;
    }
    .docs-sidebar {
        display: none;
    }
    .docs-content {
        padding: 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    .cta-actions {
        flex-direction: column;
        align-items: center;
    }
}
