@import 'variables.css';
@import 'animations.css';

/* RESET & BASE */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 700;
}

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

/* UTILITIES */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

.text-primary {
    color: var(--brand-primary);
}

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

/* Base structural layouts that will be responsive via mobile.css */
.split-section {
    display: flex;
    align-items: center;
    gap: 80px;
}

.split-section.reverse {
    flex-direction: row-reverse;
}

.split-content {
    flex: 1;
}

.footer-flex {
    display: flex;
    justify-content: space-between;
}

.faq-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 36px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: all var(--transition-base);
    font-size: 1rem;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-white);
    box-shadow: var(--shadow-md), var(--glow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: var(--shadow-lg), var(--glow-primary);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--text-muted);
    color: var(--text-muted);
    backdrop-filter: blur(10px);
}

.btn-outline:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    background: rgba(59, 130, 246, 0.1);
    box-shadow: var(--glow-primary);
}

.btn-lg {
    padding: 18px 52px;
    font-size: 1.125rem;
}

/* INPUT FIELDS */
input,
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    background: var(--bg-light);
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-sm);
    color: var(--text-dark);
    font-size: 1rem;
    font-family: var(--font-body);
    transition: all var(--transition-base);
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    background: var(--bg-light);
}

input::placeholder {
    color: var(--text-dim);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-dark);
    font-size: 0.95rem;
}

/* HEADER */
.site-header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    box-shadow: var(--shadow-sm);
}

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

.logo-img {
    height: 55px;
    width: auto;
    display: block;
    mix-blend-mode: screen;
    /* Makes black background invisible */
    border-radius: 4px;
    /* Softens corners if any artifacts remain */
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--text-gray);
    font-size: 0.95rem;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-primary);
}

/* HERO SECTION */
.hero-section {
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.hero-tag {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--brand-primary);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 40px;
}

/* CARDS (Features, Pricing) */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.feature-card {
    background: var(--bg-card);
    padding: 40px;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-md);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    border-color: var(--brand-primary);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg), var(--glow-primary);
}

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

.icon-box {
    width: 64px;
    height: 64px;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: #ffffff;
    font-size: 2rem;
    box-shadow: var(--glow-primary);
    transition: transform var(--transition-bounce);
}

.feature-card:hover .icon-box {
    transform: scale(1.1) rotate(5deg);
}

/* AUTH & CONSOLE OVERRIDES */
/* Keep Console working by scoped overrides or shared variables */
.console-layout {
    background: #f1f5f9;
    /* Override dark mode for console inner */
    color: #0f172a;
    min-height: 100vh;
}

.console-layout .sidebar {
    background: #0f172a;
    /* Keep sidebar dark */
}