/* Global Styles */
:root {
    --primary-color: #ef4444; /* Red Accent */
    --primary-dark: #dc2626;  /* Darker Red */
    --secondary-color: #10b981; /* Green for success/checks */
    --text-color: #1f2937;
    --light-text: #6b7280;
    --bg-color: #ffffff;
    --bg-light: #f3f4f6;
    --white: #ffffff;
    --footer-bg: #111827;
    --nav-active-bg: rgba(239, 68, 68, 0.1); 
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    overflow-x: hidden; 
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #111827;
}

.container {
    max-width: 1400px; /* Wider container for single line menu */
    margin: 0 auto;
    padding: 0 40px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 50px; 
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    white-space: nowrap; /* Prevent button text wrapping */
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(239, 68, 68, 0.4);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
    transform: translateY(-2px);
}

/* Header */
header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px); 
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

nav {
    display: flex;
    justify-content: center; /* CENTER ALIGNMENT */
    align-items: center;
    height: 90px;
    flex-wrap: nowrap;
    gap: 40px; /* Space between Logo, Nav, Actions */
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-color);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* Removed margin-right: auto to allow true centering */
}

/* Nav Links - Centered */
.nav-links {
    display: flex;
    gap: 15px;
    list-style: none;
    align-items: center;
    margin: 0 20px; /* Spacing from logo and button */
    flex-shrink: 1; /* Allow shrinking if absolutely necessary */
    width: auto; /* Let content dictate width */
    flex-wrap: nowrap;
}

.nav-links li {
    position: relative;
    white-space: nowrap; /* Prevent link wrapping */
}

.nav-links a {
    padding: 10px 18px;
    border-radius: 50px; /* Rounded pill shape */
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-color);
    background-color: var(--nav-active-bg);
}

/* Active Menu State */
.nav-links a.active {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 10px rgba(239, 68, 68, 0.2);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0; /* Prevent button shrinking */
}

/* Hero Section */
.hero {
    padding: 180px 0 100px;
    background: linear-gradient(135deg, #fff1f2 0%, #fff 100%); 
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 4rem;
    margin-bottom: 24px;
    color: #111827;
    background: -webkit-linear-gradient(45deg, #111827, #ef4444);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInUp 0.8s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: var(--light-text);
    margin-bottom: 48px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    animation: fadeInUp 1s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Features, How to Use, Permissions */
.features {
    padding: 100px 0;
    background-color: var(--white);
}

/* Reused Section Titles */
.section-title h2 {
    font-size: 2.5rem;
    margin-bottom: 16px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

/* Unified Card Style for Features, How To, Permissions */
.feature-card {
    padding: 40px 32px;
    border-radius: 20px;
    background: var(--white);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05); 
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
    border: 1px solid #f3f4f6;
    text-align: center;
    display: flex; /* Flex to align icons properly */
    flex-direction: column;
    align-items: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: rgba(239, 68, 68, 0.2);
}

.icon-box {
    width: 70px;
    height: 70px;
    background-color: #fef2f2; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    margin-bottom: 24px;
    font-size: 2rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
    background-color: var(--primary-color);
    color: var(--white);
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--light-text);
    font-size: 0.95rem;
}

/* Pricing */
.pricing {
    background-color: #f9fafb;
    padding: 100px 0;
}

.pricing-table {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 60px;
}

.pricing-card {
    background: var(--white);
    padding: 48px 32px;
    border-radius: 24px;
    width: 350px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.pricing-card.premium {
    border: 2px solid var(--primary-color);
    transform: scale(1.05);
    z-index: 10;
    box-shadow: 0 20px 25px -5px rgba(239, 68, 68, 0.15);
}

.pricing-card.premium:hover {
    transform: scale(1.05) translateY(-5px);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    color: #111827;
    margin: 24px 0;
    letter-spacing: -1px;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    color: #6b7280;
    margin-left: 4px;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #f3f4f6;
    display: flex;
    align-items: center;
    gap: 10px;
}

.check {
    color: var(--secondary-color);
    font-size: 1.2rem;
}

/* Footer */
footer {
    background-color: var(--footer-bg);
    color: #9ca3af;
    padding: 80px 0 30px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 60px;
}
.footer-col h4 { color: var(--white); margin-bottom: 24px; font-size: 1.1rem; text-transform: uppercase; letter-spacing: 1px; }
.copyright { border-top: 1px solid #1f2937; padding-top: 30px; margin-top: 20px; text-align: center; }

/* Responsive Design */
@media (max-width: 1200px) {
    nav {
        height: auto;
        padding: 20px 0;
        flex-direction: column;
        gap: 20px;
    }
    
    .logo { margin-right: 0; margin-bottom: 10px; }
    
    .nav-links { 
        gap: 10px; 
        flex-wrap: wrap; 
        justify-content: center; 
        margin: 0;
    }
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    
    .hero h1 { font-size: 2.5rem; }
}

/* Horizontal Tabs Styles */
.tabs-container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.tabs-header {
    display: flex;
    flex-wrap: wrap; /* NEW: Allow wrapping */
    justify-content: center; /* Center items */
    gap: 8px; /* Space between tabs */
    background-color: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px; /* Padding around tabs */
}

.tabs-header::-webkit-scrollbar {
    display: none; 
}

.tab-btn {
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 50px; /* Pill shape */
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--light-text);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    border: 1px solid transparent; /* Reserve space for border */
}

.tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(239, 68, 68, 0.05);
}

.tab-btn.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
    box-shadow: 0 4px 6px rgba(239, 68, 68, 0.2);
}

.tabs-content {
    padding: 32px;
    min-height: 200px;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
    display: block;
}

/* Card inside Tab */
.tab-card {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.tab-card h3 {
    color: var(--primary-color);
    margin-bottom: 16px;
    font-size: 1.5rem;
}

.tab-card ul {
    padding-left: 20px;
    color: var(--text-color);
}

.tab-card li {
    margin-bottom: 10px;
}
