/* 
   Project: Northway Digital Agency
   Theme: Premium Dark (Strict Architecture)
   Support: English Only
*/

/* ------------------------------------------------------------------
   1. VARIABLES & TOKENS
------------------------------------------------------------------ */
:root {
    /* Color Palette */
    --color-bg: #0f172a;        /* Deep Slate */
    --color-surface: #1e293b;   /* Lighter Slate */
    --color-border: #334155;    /* Border Color */
    
    --color-primary: #3b82f6;   /* Brand Blue */
    --color-primary-dark: #2563eb;
    --color-accent: #06b6d4;    /* Cyan */
    --color-error: #ef4444;     /* Red */
    
    --color-success-bg: rgba(16, 185, 129, 0.1);
    --color-success-border: #10b981;
    --color-success-text: #34d399;

    --color-text-main: #f8fafc; /* White */
    --color-text-muted: #94a3b8;/* Grey */

    /* Typography */
    --font-main: 'Cairo', sans-serif;

    /* Layout Dimensions */
    --container-width: 1200px;
    --header-height: 80px;
    --radius-md: 16px;

    /* Spacing */
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 96px;

    /* Shadows & Effects */
    --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-glow: 0 0 25px rgba(59, 130, 246, 0.15);
}

/* ------------------------------------------------------------------
   2. GLOBAL RESET & UTILITIES
------------------------------------------------------------------ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    color: var(--color-text-muted);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul { list-style: none; }
img { display: block; max-width: 100%; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-padding { padding: var(--spacing-xl) 0; }

.grid { display: grid; gap: 32px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

h1, h2, h3, h4, h5, h6 {
    color: var(--color-text-main);
    font-weight: 800;
    line-height: 1.3;
}

h1 { font-size: clamp(2.5rem, 5vw, 3.5rem); margin-bottom: 24px; }
h2 { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 16px; }
h3 { font-size: 1.5rem; margin-bottom: 16px; }

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

/* ------------------------------------------------------------------
   3. COMPONENTS
------------------------------------------------------------------ */

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 10px;
    border: 1px solid transparent;
    position: relative;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
}

.btn-primary:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-outline {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--color-text-main);
}
.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: rgba(59, 130, 246, 0.1);
}

.btn-sm { padding: 10px 24px; font-size: 0.9rem; }

/* Loading Spinner */
.spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Cards */
.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.card:hover {
    border-color: var(--color-primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-glow);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--color-primary);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 24px;
    transition: 0.3s;
}
.card:hover .card-icon {
    background: var(--color-primary);
    color: white;
}

/* Step Cards */
.step-card {
    background: transparent;
    padding: 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.step-number {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.5rem;
    margin-bottom: 20px;
    background: var(--color-bg);
    color: var(--color-text-main);
}

/* Forms */
.form-group {
    width: 100%;
    margin-bottom: 20px;
    text-align: left;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-muted);
}

.form-input, .form-textarea {
    width: 100%;
    padding: 16px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-main);
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}
.form-input:focus, .form-textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Validation Styles */
.form-input.error, .form-textarea.error {
    border-color: var(--color-error);
}
.error-msg {
    display: none;
    color: var(--color-error);
    font-size: 0.85rem;
    margin-top: 6px;
}
.form-input.error + .error-msg,
.form-textarea.error + .error-msg {
    display: block;
}

/* Form Success Message */
.form-success {
    display: none;
    background-color: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
    color: var(--color-success-text);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-top: 20px;
    text-align: center;
    font-weight: 600;
    animation: fadeIn 0.5s ease-in-out;
    width: 100%;
}

.form-success.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Check Lists */
.check-list { width: 100%; margin: 24px 0; padding: 0; }
.check-list li { margin-bottom: 12px; display: flex; align-items: center; gap: 12px; color: var(--color-text-main); }
.check-icon { color: #10b981; flex-shrink: 0; }

/* ------------------------------------------------------------------
   4. HEADER & NAVIGATION
------------------------------------------------------------------ */
.main-header {
    position: fixed;
    top: 0; left: 0; width: 100%;
    z-index: 1000;
    padding: 20px 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 900;
    color: white;
    letter-spacing: -1px;
    display: flex;
    align-items: center;
}
.logo span { color: var(--color-primary); }

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
    margin: 0; padding: 0;
}

.nav-link {
    font-weight: 600;
    color: var(--color-text-muted);
    font-size: 1rem;
    cursor: pointer;
}
.nav-link:hover, .nav-link.active { color: white; }

.mobile-toggle { display: none; font-size: 1.5rem; color: white; cursor: pointer; padding: 5px; }
.desktop-cta { display: block; }
.mobile-only-btn { display: none; }

/* ------------------------------------------------------------------
   5. HERO BADGE & BUTTONS
------------------------------------------------------------------ */
.hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.05);
    padding: 5px 15px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    color: var(--color-accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-btns {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------------
   6. SECTIONS
------------------------------------------------------------------ */
.hero {
    position: relative;
    padding: 180px 0 100px;
    text-align: center;
    overflow: hidden;
}

.hero-glow-1, .hero-glow-2 {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.25;
}
.hero-glow-1 { top: -150px; left: -10%; background: var(--color-primary); }
.hero-glow-2 { bottom: -100px; right: -10%; background: var(--color-accent); }

.hero-title {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero-desc {
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* Page Header */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background: linear-gradient(to bottom, rgba(30,41,59,0.3), var(--color-bg));
    border-bottom: 1px solid var(--color-border);
}

/* Pricing Special */
.pricing-card.featured {
    border: 2px solid var(--color-primary);
    background: linear-gradient(180deg, var(--color-surface) 0%, rgba(59,130,246,0.1) 100%);
    position: relative;
    top: -20px;
}
.price {
    font-size: 2.5rem;
    font-weight: 900;
    color: white;
    margin: 20px 0;
}
.price span { font-size: 1rem; color: var(--color-text-muted); font-weight: normal; }

/* ------------------------------------------------------------------
   7. FOOTER
------------------------------------------------------------------ */
.main-footer {
    background: #020617;
    border-top: 1px solid var(--color-border);
    padding: 80px 0 30px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
}

.footer-heading { color: white; margin-bottom: 24px; font-size: 1.1rem; }
.footer-links li { margin-bottom: 12px; }
.footer-links a:hover { color: var(--color-primary); padding-left: 8px; }

.copyright {
    margin-top: 60px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.9rem;
}

/* ------------------------------------------------------------------
   8. RESPONSIVE
------------------------------------------------------------------ */
@media (max-width: 1024px) {
    .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .pricing-card.featured { top: 0; }
    .hero { padding-top: 140px; }
}

@media (max-width: 768px) {
    .main-header { padding: 15px 0; }
    .mobile-toggle { display: block; }
    .desktop-cta { display: none; }
    
    .nav-menu {
        position: fixed;
        top: 70px; 
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--color-bg);
        flex-direction: column;
        padding: 40px 24px;
        align-items: flex-start;
        justify-content: flex-start;
        transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        border-top: 1px solid var(--color-border);
        overflow-y: auto;
    }

    .nav-menu.active { right: 0; }
    
    .nav-menu li { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.05); }
    .nav-link { display: block; padding: 16px 0; font-size: 1.1rem; }
    
    .mobile-only-btn { display: inline-flex; width: 100%; margin-top: 24px; }

    .grid, .grid-2, .grid-3, .grid-4, .footer-grid { grid-template-columns: 1fr; gap: 24px; }

    h1 { font-size: 2.25rem; }
    h2 { font-size: 1.75rem; }
    
    .hero { padding: 120px 0 60px; }
    .footer-grid { text-align: center; }
    .hero .btn { width: 100%; margin-bottom: 10px; }
}