/* Reset and Globals */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc; /* Slate 50 */
    --text-primary: #0f172a; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    --accent-red: #d32f2f; /* Red circular node brand color */
    --accent-blue: #1e40af; /* Deep blue badge brand color */
    --accent-blue-hover: #1d4ed8;
    --border-color: #e2e8f0; /* Slate 200 */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-primary);
    margin-bottom: 20px;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 15px;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

h3 {
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--text-primary);
}

p {
    color: var(--text-secondary);
}

/* Buttons */
.btn {
    display: inline-block;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
}

.btn-primary {
    /* Identical formatting (gradient, shadow, hover transition) as btn-hero-primary, sized for navbar */
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-blue) 100%);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.18);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(211, 47, 47, 0.32);
}

.btn-hero-primary {
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-blue) 100%);
    color: #fff;
    padding: 14px 28px;
    font-size: 1.05rem;
    box-shadow: 0 4px 15px rgba(211, 47, 47, 0.2);
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(211, 47, 47, 0.35);
}

.btn-hero-secondary {
    background-color: #fff;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 14px 28px;
    font-size: 1.05rem;
    box-shadow: var(--shadow-sm);
}

.btn-hero-secondary:hover {
    background-color: #f8fafc;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

/* Header Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

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

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo {
    height: 52px;
    width: auto;
    object-fit: contain;
}

.nav-menu {
    display: flex;
    gap: 35px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-menu a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero-section {
    padding-top: 170px;
    padding-bottom: 90px;
    position: relative;
    background: radial-gradient(circle at 80% 20%, rgba(30, 64, 175, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 10% 80%, rgba(211, 47, 47, 0.04) 0%, transparent 40%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 50px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: rgba(211, 47, 47, 0.08);
    color: var(--accent-red);
    border: 1px solid rgba(211, 47, 47, 0.15);
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.hero-lead {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

.hero-ctas {
    display: flex;
    gap: 15px;
}

/* Visual Mockup Container */
.hero-preview {
    display: flex;
    justify-content: center;
    position: relative;
}

.canvas-mockup {
    width: 100%;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    box-shadow: var(--shadow-lg), 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.mockup-header {
    height: 38px;
    background-color: #f8fafc;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-red { background-color: #ff5f56; }
.dot-yellow { background-color: #ffbd2e; }
.dot-green { background-color: #27c93f; }

.tab-title {
    margin-left: 20px;
    font-size: 0.75rem;
    color: #94a3b8;
    font-family: monospace;
}

.mockup-body {
    flex: 1;
    background-color: #ffffff;
    position: relative;
}

.screenshot-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Core Premises Section */
.premises-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
}

.section-header h2 {
    margin-bottom: 10px;
}

.premises-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.premise-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 35px 25px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.premise-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.premise-text {
    font-size: 1.2rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
}

/* Features Section (Detailed list layout) */
.features-section {
    background-color: var(--bg-secondary);
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.features-detailed-grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.detailed-card {
    background-color: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-left: 5px solid var(--accent-red);
    border-radius: 10px;
    padding: 40px;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.card-num {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3.5rem;
    font-weight: 800;
    color: #f1f5f9;
    line-height: 1;
    user-select: none;
    z-index: 1;
}

.detailed-card h3 {
    position: relative;
    z-index: 2;
    margin-bottom: 25px;
    font-size: 1.5rem;
}

.card-list {
    list-style: none;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.card-list li {
    font-size: 0.98rem;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.card-list li::before {
    content: "•";
    color: var(--accent-red);
    font-weight: bold;
    font-size: 1.25rem;
    position: absolute;
    left: 0;
    top: -2px;
}

/* How It Works Section */
.how-it-works-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 20px;
}

.step-card {
    background-color: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px 30px;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.step-num {
    position: absolute;
    top: -20px;
    left: 30px;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--accent-red) 0%, var(--accent-blue) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    color: #fff;
    box-shadow: 0 4px 10px rgba(211,47,47,0.2);
}

.step-card h3 {
    margin-top: 10px;
    font-size: 1.25rem;
}

.step-card p {
    font-size: 0.95rem;
    margin-top: 10px;
}

/* Footer Section */
.footer {
    background-color: var(--bg-secondary);
    padding: 85px 0 40px 0;
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
}

.footer-cta {
    text-align: center;
    max-width: 700px;
}

.footer-cta h2 {
    margin-bottom: 10px;
}

.footer-cta p {
    margin-bottom: 25px;
}

.footer-bottom {
    width: 100%;
    text-align: center;
    border-top: 1px solid var(--border-color);
    padding-top: 30px;
    font-size: 0.85rem;
    color: #94a3b8;
}

/* Mobile Responsiveness */
@media (max-width: 968px) {
    h1 {
        font-size: 2.5rem;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    
    .hero-ctas {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
    }
    
    .premises-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .nav-menu {
        display: none; /* Hide link menu on simple mobile navbar */
    }
}
