:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #111;
    --bg-tertiary: #141414;
    --text-primary: #e5e5e5;
    --text-secondary: #a0a0a0;
    --text-muted: #606060;
    --accent: #06b6d4;
    --accent-dim: rgba(6, 182, 212, 0.15);
}

html {
    scroll-behavior: smooth;
}

/* Animated grid background */
.hero-grid {
    position: absolute;
    inset: 0;
    overflow: hidden;
    opacity: 0.12;
    pointer-events: none;
}

.hero-grid::before {
    content: '';
    position: absolute;
    inset: -50%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

/* Floating geometric shapes */
.hero-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    opacity: 0.06;
}

.shape {
    position: absolute;
    border: 1px solid var(--accent);
    border-radius: 2px;
}

.shape-1 {
    width: 80px; height: 80px;
    top: 20%; left: 10%;
    animation: float-1 18s ease-in-out infinite;
}

.shape-2 {
    width: 50px; height: 50px;
    top: 60%; left: 80%;
    animation: float-2 22s ease-in-out infinite;
}

.shape-3 {
    width: 100px; height: 100px;
    top: 30%; left: 60%;
    transform: rotate(45deg);
    animation: float-3 25s ease-in-out infinite;
}

.shape-4 {
    width: 60px; height: 60px;
    border-radius: 50%;
    top: 70%; left: 25%;
    animation: float-1 20s ease-in-out infinite reverse;
}

@keyframes float-1 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(5deg); }
    66% { transform: translate(-20px, 20px) rotate(-3deg); }
}

@keyframes float-2 {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(-40px, -20px) rotate(-5deg); }
    66% { transform: translate(25px, 35px) rotate(3deg); }
}

@keyframes float-3 {
    0%, 100% { transform: translate(0, 0) rotate(45deg); }
    33% { transform: translate(20px, 40px) rotate(50deg); }
    66% { transform: translate(-35px, -15px) rotate(40deg); }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pricing card elevated */
.card-elevated {
    transform: scale(1.05);
    border-color: var(--accent) !important;
    position: relative;
    z-index: 10;
}

@media (max-width: 767px) {
    .card-elevated {
        transform: scale(1);
    }
}

/* Feature list */
.feature-check {
    color: var(--accent);
    font-weight: bold;
    margin-right: 0.5rem;
}

.feature-cross {
    color: #555;
    margin-right: 0.5rem;
}

/* Badge */
.badge-popular {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--bg-primary);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 14px;
    border-radius: 9999px;
    white-space: nowrap;
}

/* Comparison table */
.comparison-table th,
.comparison-table td {
    padding: 14px 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.comparison-table th:first-child,
.comparison-table td:first-child {
    text-align: left;
}

.comparison-table thead th {
    font-family: 'DM Serif Display', serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    padding: 20px;
}

.comparison-table thead th:first-child {
    color: var(--text-secondary);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
}

/* Portfolio card hover */
.portfolio-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portfolio-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Tag pill */
.tag-pill {
    display: inline-block;
    padding: 3px 10px;
    font-size: 0.7rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9999px;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

/* FAQ accordion */
.faq-details {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.faq-details > summary {
    padding: 20px 0;
    cursor: pointer;
    font-size: 1.05rem;
    color: var(--text-primary);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-details > summary::-webkit-details-marker {
    display: none;
}

.faq-details > summary::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--accent);
    transition: transform 0.3s ease;
    margin-left: 1rem;
    flex-shrink: 0;
}

.faq-details[open] > summary::after {
    content: '\2212';
}

.faq-details > div {
    padding: 0 0 20px;
    color: var(--text-secondary);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* Form styles */
.form-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-input::placeholder {
    color: #555;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* Flash messages */
.flash-success {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

.flash-error {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #f87171;
    padding: 12px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Hamburger animation */
#menu-btn.open span:first-child {
    transform: translateY(6px) rotate(45deg);
}

#menu-btn.open span:nth-child(2) {
    opacity: 0;
}

#menu-btn.open span:last-child {
    transform: translateY(-6px) rotate(-45deg);
}

/* Accent button */
.btn-accent {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid var(--accent);
    color: var(--accent);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.btn-accent:hover {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-accent-filled {
    display: inline-block;
    padding: 10px 24px;
    background: var(--accent);
    color: var(--bg-primary);
    border: 1px solid var(--accent);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s;
}

.btn-accent-filled:hover {
    background: #0891b2;
}

.btn-ghost {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    border-radius: 6px;
    font-size: 0.9rem;
    transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.03);
}

/* Section titles */
.section-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 12px;
}
