/* ==========================================================================
   HALOVINA.COM - DESIGN SYSTEM & GLOBAL STYLES
   Specialized API Testing Automation & Security Specialist
   ========================================================================== */

:root {
    --primary: #0284c7;
    --primary-light: #38bdf8;
    --primary-hover: #0369a1;
    --primary-glow: rgba(2, 132, 199, 0.25);
    
    --bg-dark: #0b1120;
    --bg-surface: #0f172a;
    --bg-card: #1e293b;
    --bg-card-hover: #243248;
    --bg-card-subtle: rgba(30, 41, 59, 0.6);
    
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --text-subtle: #64748b;
    
    --accent-emerald: #10b981;
    --accent-emerald-glow: rgba(16, 185, 129, 0.2);
    --accent-rose: #f43f5e;
    --accent-amber: #f59e0b;
    --accent-indigo: #818cf8;
    --accent-purple: #a855f7;
    
    --border: #334155;
    --border-light: rgba(51, 65, 85, 0.5);
    --border-glow: rgba(56, 189, 248, 0.4);
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    
    --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.4), 0 8px 10px -6px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 35px -5px var(--primary-glow);
    --shadow-inner: inset 0 1px 0 0 rgba(255, 255, 255, 0.07);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    background-image: 
        radial-gradient(at 15% 15%, rgba(2, 132, 199, 0.08) 0px, transparent 50%),
        radial-gradient(at 85% 25%, rgba(129, 140, 248, 0.06) 0px, transparent 45%),
        radial-gradient(at 50% 80%, rgba(16, 185, 129, 0.05) 0px, transparent 50%);
    background-attachment: fixed;
}

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

ul {
    list-style: none;
}

/* Layout Utilities */
.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-light); }
.text-emerald { color: var(--accent-emerald); }
.text-rose { color: var(--accent-rose); }
.text-amber { color: var(--accent-amber); }
.text-muted { color: var(--text-muted); }

/* Header & Navigation */
header {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(11, 17, 32, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    z-index: 1000;
    transition: border-color 0.3s ease;
}

.nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

.logo-badge {
    background: rgba(2, 132, 199, 0.15);
    color: var(--primary-light);
    border: 1px solid rgba(2, 132, 199, 0.35);
    font-size: 0.65rem;
    font-family: var(--font-mono);
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary-light);
}

.logo img {
    max-height:50px;
	margin-right:5px;
}
.nav-menu {
    display: flex;
    align-items: center;
    gap: 1.8rem;
}

.nav-item {
    position: relative;
}

.nav-link {
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.4rem 0.2rem;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-main);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -18px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--primary);
    box-shadow: 0 0 10px var(--primary-light);
}

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

.mobile-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-main);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0.65rem 1.3rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, #0369a1 100%);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(2, 132, 199, 0.35);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0284c7 0%, #075985 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(2, 132, 199, 0.5);
    color: #fff;
}

.btn-secondary {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--text-muted);
    transform: translateY(-1px);
}

.btn-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    box-shadow: 0 4px 14px 0 rgba(16, 185, 129, 0.35);
}

.btn-emerald:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px 0 rgba(16, 185, 129, 0.5);
    color: #fff;
}

.btn-sm {
    padding: 0.45rem 0.9rem;
    font-size: 0.82rem;
}

.btn-lg {
    padding: 0.85rem 2rem;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.35rem 0.85rem;
    background: rgba(2, 132, 199, 0.12);
    color: var(--primary-light);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    letter-spacing: 0.2px;
}

.badge-emerald {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
}

.badge-amber {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
    border-color: rgba(245, 158, 11, 0.3);
}

.badge-rose {
    background: rgba(244, 63, 94, 0.12);
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.3);
}

.badge-indigo {
    background: rgba(129, 140, 248, 0.12);
    color: #a5b4fc;
    border-color: rgba(129, 140, 248, 0.3);
}

/* Breadcrumbs */
.breadcrumb-nav {
    padding: 1.2rem 0 0.5rem;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: var(--text-subtle);
}

.breadcrumb-nav a {
    color: var(--text-muted);
}

.breadcrumb-nav a:hover {
    color: var(--primary-light);
}

.breadcrumb-nav span.separator {
    color: var(--border);
}

.breadcrumb-nav span.current {
    color: var(--text-main);
    font-weight: 500;
}

/* Hero Generic */
.page-hero {
    padding: 4rem 0 3.5rem;
    text-align: center;
    position: relative;
}

.page-hero h1 {
    font-size: 2.85rem;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.8px;
}

.page-hero p.subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.page-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Section Header */
.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-header h2 {
    font-size: 2.1rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.05rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Cards & Grids */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

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

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

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

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: var(--shadow-card), 0 0 25px -5px rgba(2, 132, 199, 0.2);
}

.card:hover::before {
    opacity: 1;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    background: rgba(2, 132, 199, 0.15);
    border: 1px solid rgba(2, 132, 199, 0.3);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.4rem;
}

.card-icon.emerald {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--accent-emerald);
}

.card-icon.rose {
    background: rgba(244, 63, 94, 0.15);
    border-color: rgba(244, 63, 94, 0.3);
    color: var(--accent-rose);
}

.card-icon.amber {
    background: rgba(245, 158, 11, 0.15);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--accent-amber);
}

.card-icon.indigo {
    background: rgba(129, 140, 248, 0.15);
    border-color: rgba(129, 140, 248, 0.3);
    color: var(--accent-indigo);
}

.card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    line-height: 1.35;
}

.card p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.card-link {
    margin-top: 1.25rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--primary-light);
}

.card-link:hover {
    color: #fff;
    gap: 10px;
}

/* Feature List Inside Card */
.feature-list {
    margin-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9rem;
    color: #cbd5e1;
}

.feature-list li .check-icon {
    color: var(--accent-emerald);
    font-size: 1rem;
    margin-top: 1px;
}

/* Code Window / Terminal */
.code-window {
    background: #020617;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: left;
    max-width: 900px;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

.code-header {
    background: #1e293b;
    padding: 0.65rem 1.2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.code-dots {
    display: flex;
    gap: 7px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

.code-title {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.code-body {
    padding: 1.6rem;
    font-family: var(--font-mono);
    font-size: 0.88rem;
    line-height: 1.7;
    color: #cbd5e1;
    overflow-x: auto;
}

.code-body pre {
    white-space: pre-wrap;
    word-break: break-word;
}

/* Metrics & Stats Row */
.stats-banner {
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 1.5rem;
    margin: 3.5rem 0;
    box-shadow: var(--shadow-card);
}

.stats-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.75rem 2rem;
    text-align: center;
}

.stat-item {
    flex: 1 1 220px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.stat-item h3 {
    font-size: 2.6rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #fff;
    margin-bottom: 0.35rem;
    letter-spacing: -1px;
}

.stat-item p {
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Methodology Steps / Timeline */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    position: relative;
    margin-top: 3rem;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 1.8rem;
    border-radius: var(--radius-md);
    position: relative;
}

.step-num {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 800;
    color: rgba(56, 189, 248, 0.25);
    margin-bottom: 0.5rem;
}

.step-card h4 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
}

.step-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* Comparison Table */
.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    margin: 2.5rem 0;
}

.styled-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
}

.styled-table th {
    background: #0f172a;
    padding: 1.2rem 1.5rem;
    color: var(--text-main);
    font-weight: 700;
    border-bottom: 2px solid var(--border);
}

.styled-table td {
    padding: 1.1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
}

.styled-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

.styled-table td.highlight {
    color: var(--primary-light);
    font-weight: 600;
    background: rgba(2, 132, 199, 0.05);
}

/* Form Styles */
.form-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    max-width: 700px;
    margin: 0 auto;
}

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

.form-label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #e2e8f0;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    background: #090e1a;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.2);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

/* Pricing Grid & Cards */
.pricing-grid {
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 auto;
    width: 100%;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
    flex: 1 1 340px;
    max-width: 440px;
    width: 100%;
}

.pricing-card.featured {
    border-color: var(--primary);
    box-shadow: 0 0 30px -5px rgba(2, 132, 199, 0.35);
    background: linear-gradient(180deg, #1e293b 0%, #162033 100%);
    transform: scale(1.03);
}

.pricing-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pricing-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    min-height: 42px;
}

.pricing-price {
    font-size: 2.4rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: #fff;
    margin-bottom: 0.25rem;
}

.pricing-period {
    color: var(--text-subtle);
    font-size: 0.85rem;
    margin-bottom: 1.8rem;
}

.pricing-cta {
    margin-top: auto;
    padding-top: 1.8rem;
}

/* FAQ Accordion */
.faq-section {
    max-width: 850px;
    margin: 4rem auto 0;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.faq-question {
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    font-size: 1.05rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-icon {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 1.5rem 1.25rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.65;
    display: none;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

/* CTA Banner */
.cta-banner {
    background: radial-gradient(circle at top right, rgba(2, 132, 199, 0.25), transparent 70%),
                linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border: 1px solid rgba(56, 189, 248, 0.3);
    border-radius: var(--radius-xl);
    padding: 4rem 2rem;
    text-align: center;
    margin: 5rem 0 2rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.6);
}

.cta-banner h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.cta-banner p {
    color: var(--text-muted);
    font-size: 1.15rem;
    max-width: 680px;
    margin: 0 auto 2.2rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 4.5rem 0 2rem;
    margin-top: 5rem;
    background: #080d1a;
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-top: 1.2rem;
    max-width: 320px;
    line-height: 1.65;
}

.footer-col h4 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1.3rem;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.footer-col a:hover {
    color: var(--primary-light);
    padding-left: 2px;
}

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-subtle);
    font-size: 0.85rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .grid-4, .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: #0b1120;
        border-bottom: 1px solid var(--border);
        padding: 1.5rem;
        gap: 1.2rem;
    }

    .nav-menu.show {
        display: flex;
    }

    .mobile-toggle {
        display: block;
    }

    .page-hero h1 {
        font-size: 2.1rem;
    }

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

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

    .form-row {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-banner h2 {
        font-size: 1.8rem;
    }
}
