:root {
    --bg: #ffffff;
    --fg: #1d1d1f;
    --accent: #0066cc;
    --accent-hover: #0077ed;
    --secondary: #86868b;
    --border: rgba(0, 0, 0, 0.1);
    --card-bg: rgba(255, 255, 255, 0.72);
    --glass: rgba(255, 255, 255, 0.8);
    --dark-bg: #000000;
    --dark-card: #1c1c1e;
    --gradient: linear-gradient(180deg, #1d1d1f 0%, #434344 100%);
    --highlight-color: #f59e0b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--fg);
    background-color: var(--bg);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    height: 52px;
    display: flex;
    align-items: center;
    background: var(--glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    border-bottom: 1px solid var(--border);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.logo {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.weight-light {
    font-weight: 300;
    color: var(--secondary);
}

.nav-links a {
    text-decoration: none;
    color: var(--secondary);
    font-size: 12px;
    margin-left: 24px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--fg);
}

/* Hero Section: High-Fidelity Depth */
.hero {
    padding-top: 180px;
    padding-bottom: 140px;
    text-align: center;
    position: relative;
    background: #ffffff;
    overflow: hidden;
}

/* Engineering Grid Pattern */
.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 2px 2px, rgba(0, 0, 0, 0.03) 1px, transparent 0);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
    pointer-events: none;
}

/* Mesh Gradient Blobs */
.hero::after {
    content: "";
    position: absolute;
    top: -10%;
    left: 50%;
    width: 120%;
    height: 120%;
    transform: translateX(-50%);
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 102, 204, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 20%, rgba(198, 0, 240, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(0, 102, 204, 0.03) 0%, transparent 60%);
    filter: blur(80px);
    z-index: 0;
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.badge-hero {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 32px;
    display: inline-block;
    padding: 8px 18px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 102, 204, 0.1);
    border-radius: 980px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.hero h1 {
    font-size: clamp(40px, 8vw, 76px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
    margin-bottom: 32px;
    color: #111111;
}

.text-gradient {
    background: linear-gradient(90deg, #0066cc, #c600f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 22px;
    color: var(--secondary);
    max-width: 800px;
    margin: 0 auto 52px;
    font-weight: 400;
    letter-spacing: -0.015em;
    line-height: 1.5;
}

.cta-group {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border-radius: 980px;
    font-size: 17px;
    font-weight: 400;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
}

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

.btn-primary:hover {
    background: var(--accent-hover);
    transform: scale(1.02);
}

.btn-secondary {
    color: var(--accent);
}

.btn-secondary:hover {
    text-decoration: underline;
}

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

.btn-ghost:hover {
    background: white;
    color: black;
}

/* Capabilities */
.capabilities {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 60px;
    text-align: center;
}

.section-header h2 {
    font-size: 40px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 21px;
    color: var(--secondary);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.cap-card {
    padding: 40px;
    background: #f5f5f7;
    border-radius: 20px;
    transition: transform 0.4s;
}

.cap-card:hover {
    transform: translateY(-8px);
}

.cap-icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
    margin-bottom: 24px;
}

.cap-card h3 {
    font-size: 21px;
    font-weight: 600;
    margin-bottom: 12px;
}

.cap-card p {
    color: var(--secondary);
    font-size: 17px;
}

/* Pricing Section */
.pricing {
    background: var(--dark-bg);
    color: white;
    padding: 120px 0;
}

.section-header.white h2, .section-header.white p {
    color: white;
}

.pricing-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 60px;
}

.price-box {
    background: var(--dark-card);
    padding: 40px;
    border-radius: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(255,255,255,0.1);
}

.price-box.featured {
    background: #ffffff;
    color: #000000;
    transform: scale(1.05);
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    z-index: 10;
}

.recommendation {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    display: block;
    margin-bottom: 8px;
}

.box-header h3 {
    font-size: 24px;
    margin-bottom: 12px;
}

.cost {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -0.04em;
    display: flex;
    align-items: baseline;
    gap: 6px;
}

.label-initial {
    font-size: 14px;
    font-weight: 400;
    color: var(--secondary);
    background: rgba(134, 134, 139, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
}

.recurrence {
    font-size: 16px;
    color: var(--accent);
    margin-bottom: 32px;
    font-weight: 500;
}

.recurrence small {
    font-size: 12px;
    color: var(--secondary);
    font-weight: 400;
    display: block;
    margin-top: 4px;
}

.box-list {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.box-list li {
    font-size: 15px;
    margin-bottom: 12px;
    padding-left: 24px;
    position: relative;
    color: #cbd5e1;
}

.price-box.featured .box-list li {
    color: #434344;
}

.box-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Legal Section */
.legal {
    padding: 80px 0;
    background: #f5f5f7;
}

.legal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
}

.legal-item h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 12px;
}

.legal-item p {
    font-size: 14px;
    color: var(--secondary);
}

/* Footer */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-content p {
    font-size: 12px;
    color: var(--secondary);
}

.box-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.view-benefits {
    display: block;
    text-align: center;
    color: var(--secondary);
    font-size: 13px;
    text-decoration: underline;
    margin-bottom: 24px;
    transition: all 0.2s;
    cursor: pointer;
}

.view-benefits:hover {
    color: var(--accent);
    transform: translateY(-1px);
}

.pricing-card .btn {
    width: auto;
    min-width: 220px;
    text-align: center;
}

/* Modal Styling: Ultra-Premium High-Fidelity */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: #ffffff;
    padding: 0; /* Header handles its own padding */
    border-radius: 40px;
    width: 100%;
    max-width: 800px;
    max-height: 85vh;
    overflow: hidden; /* For rounded corners with header */
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05), 0 40px 80px rgba(0,0,0,0.2);
    transform: translateY(40px) scale(0.98);
    transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-header {
    padding: 60px 60px 40px;
    background: linear-gradient(to bottom, #fbfbfd 0%, #ffffff 100%);
    border-bottom: 1px solid #f2f2f7;
    text-align: left;
}

.modal-header h2 {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1;
    margin-bottom: 12px;
    color: #111111;
}

.modal-header .subtitle {
    font-size: 19px;
    color: var(--secondary);
    font-weight: 400;
    letter-spacing: -0.01em;
}

.modal-body-scroll {
    padding: 40px 60px 60px;
    overflow-y: auto;
    flex-grow: 1;
    background: #ffffff;
}

.previous-plan-badge {
    background: #f5f5f7;
    color: #1d1d1f;
    padding: 14px 24px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #e5e5ea;
}

.previous-plan-badge::before {
    content: "★";
    color: var(--highlight-color);
}

.modal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
}

.modal-section {
    border-bottom: 1px solid #f2f2f7;
    padding-bottom: 32px;
}

.modal-section:last-child {
    border-bottom: none;
}

.modal-section h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: var(--secondary);
    margin-bottom: 24px;
    font-weight: 700;
}

.modal-section ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.modal-section li {
    font-size: 16px;
    font-weight: 400;
    color: #1d1d1f;
    display: flex;
    align-items: center;
    gap: 14px;
}

.modal-section li svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
    background: rgba(0, 102, 204, 0.08);
    padding: 4px;
    border-radius: 6px;
    flex-shrink: 0;
}

.close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    background: rgba(0,0,0,0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #1d1d1f;
    transition: all 0.2s;
}

.close-modal:hover {
    background: rgba(0,0,0,0.1);
    transform: rotate(90deg);
}

@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .hero h1 { font-size: 38px; }
    .pricing-wrapper { grid-template-columns: 1fr; }
    .price-box.featured { transform: scale(1); margin: 20px 0; }
}
