/* ==========================================================================
   PERICLES — Apple-Inspired Design System
   Soft, smooth, white & grey palette
   ========================================================================== */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
    /* Primary — Soft dark slate */
    --color-primary: #1d1d1f;
    --color-primary-light: #424245;
    --color-primary-lighter: #6e6e73;

    /* Greys — Apple-like progression */
    --grey-50: #fbfbfd;
    --grey-100: #f5f5f7;
    --grey-200: #e8e8ed;
    --grey-300: #d2d2d7;
    --grey-400: #b0b0b6;
    --grey-500: #86868b;
    --grey-600: #6e6e73;
    --grey-700: #424245;
    --grey-800: #1d1d1f;

    /* Accent — Subtle blue */
    --color-accent: #0071e3;
    --color-accent-hover: #0077ed;
    --color-accent-soft: rgba(0, 113, 227, 0.08);

    /* Status */
    --color-success: #30d158;
    --color-success-soft: #e8fbef;
    --color-danger: #ff3b30;
    --color-danger-soft: #fff0ef;
    --color-warning: #ff9f0a;
    --color-warning-soft: #fff8eb;
    --color-info: #64d2ff;
    --color-info-soft: #eef9ff;

    /* Surfaces */
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-tertiary: #fbfbfd;
    --bg-glass: rgba(255, 255, 255, 0.72);
    --bg-glass-dark: rgba(29, 29, 31, 0.72);

    /* Text */
    --text-primary: #1d1d1f;
    --text-secondary: #6e6e73;
    --text-tertiary: #86868b;
    --text-inverse: #f5f5f7;

    /* Borders */
    --border-color: #d2d2d7;
    --border-light: #e8e8ed;
    --border-focus: var(--color-accent);

    /* Shadows — Ultra soft Apple-like */
    --shadow-xs: 0 0.5px 1px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.1);
    --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04), 0 0 1px rgba(0, 0, 0, 0.06);
    --shadow-card-hover: 0 8px 30px rgba(0, 0, 0, 0.08), 0 0 1px rgba(0, 0, 0, 0.08);

    /* Radius */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-md: 16px;
    --radius-lg: 20px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 0.3s var(--ease-smooth);
    --transition-fast: 0.15s var(--ease-smooth);
    --transition-slow: 0.5s var(--ease-smooth);

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 980px;
    --header-height: 48px;
    --section-padding: 120px;
}

/* ---- Reset & Base ---- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent-hover);
}

img {
    max-width: 100%;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
    color: var(--text-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.text-center { text-align: center; }

/* ---- Container ---- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Section spacing ---- */
.section {
    padding: var(--section-padding) 0;
}

.section-grey {
    background-color: var(--bg-secondary);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 12px;
}

/* ==========================================================================
   Navigation / Header
   ========================================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 0.5px solid rgba(0, 0, 0, 0.08);
    transition: background var(--transition);
}

.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.03em;
}

.nav-logo img {
    height: 28px;
    width: auto;
}

.nav-logo .logo-icon {
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    border-radius: 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 0.8125rem;
    font-weight: 400;
    color: var(--text-primary);
    opacity: 0.8;
    transition: opacity var(--transition-fast);
}

.nav-links a:hover {
    opacity: 1;
    color: var(--text-primary);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-lang {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 6px 10px;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast);
    position: relative;
}

.nav-lang:hover {
    background: var(--grey-100);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 0.5px solid var(--border-light);
    min-width: 160px;
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all var(--transition-fast);
    z-index: 100;
}

.lang-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    font-size: 0.8125rem;
    color: var(--text-primary);
    border-radius: 6px;
    transition: background var(--transition-fast);
}

.lang-dropdown a:hover {
    background: var(--grey-100);
}

/* ---- User Dropdown ---- */
.nav-user {
    position: relative;
}

.nav-user-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px 4px 4px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: background var(--transition-fast);
    user-select: none;
}

.nav-user-trigger:hover {
    background: var(--grey-100);
}

.nav-user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.nav-user-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-user-chevron {
    color: var(--text-tertiary);
    transition: transform var(--transition-fast);
    flex-shrink: 0;
}

.nav-user.open .nav-user-chevron {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    border: 0.5px solid var(--border-light);
    min-width: 256px;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all var(--transition-fast);
    z-index: 200;
}

.user-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 16px;
    border-bottom: 1px solid var(--grey-200);
}

.user-dropdown-name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.user-dropdown-email {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

.user-dropdown-role {
    margin-top: 8px;
    display: inline-block;
}

.user-dropdown-section {
    padding: 6px;
    border-bottom: 1px solid var(--grey-200);
}

.user-dropdown-section:last-child {
    border-bottom: none;
}

.user-dropdown-label {
    padding: 6px 12px 4px;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-tertiary);
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    font-size: 0.8125rem;
    color: var(--text-primary);
    border-radius: 6px;
    transition: background var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
}

.user-dropdown-item:hover {
    background: var(--grey-100);
}

.user-dropdown-item svg {
    color: var(--text-secondary);
    flex-shrink: 0;
}

.user-dropdown-empty {
    color: var(--text-tertiary);
    font-style: italic;
    cursor: default;
}

.user-dropdown-empty:hover {
    background: none;
}

.user-dropdown-logout {
    color: var(--color-danger);
}

.user-dropdown-logout svg {
    color: var(--color-danger);
}

.user-dropdown-logout:hover {
    background: var(--color-danger-soft);
}

/* Mobile menu */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 1.5px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all var(--transition);
    white-space: nowrap;
    line-height: 1;
}

.btn-primary {
    background: var(--color-accent);
    color: white;
    padding: 14px 28px;
}

.btn-primary:hover {
    background: var(--color-accent-hover);
    color: white;
    transform: scale(1.02);
}

.btn-secondary {
    background: transparent;
    color: var(--color-accent);
    padding: 14px 28px;
}

.btn-secondary:hover {
    color: var(--color-accent-hover);
    background: var(--color-accent-soft);
}

.btn-dark {
    background: var(--color-primary);
    color: white;
    padding: 14px 28px;
}

.btn-dark:hover {
    background: var(--color-primary-light);
    color: white;
    transform: scale(1.02);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1.5px solid var(--border-color);
    padding: 12px 24px;
}

.btn-outline:hover {
    border-color: var(--text-primary);
    background: var(--grey-50);
}

.btn-ghost {
    background: transparent;
    color: var(--color-accent);
    font-weight: 500;
}

.btn-ghost::after {
    content: '→';
    display: inline-block;
    transition: transform var(--transition-fast);
}

.btn-ghost:hover::after {
    transform: translateX(4px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8125rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.0625rem;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 160px 24px 120px;
    position: relative;
    overflow: hidden;
    background: var(--bg-primary);
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -25%;
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at 50% 50%, rgba(0, 113, 227, 0.03) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 820px;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--grey-600) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-content p {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    background: var(--color-success);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ==========================================================================
   Cards
   ========================================================================== */
.card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-card);
    border: 0.5px solid var(--border-light);
    transition: all var(--transition);
}

.card:hover {
    box-shadow: var(--shadow-card-hover);
    transform: translateY(-2px);
}

.card-flat {
    box-shadow: none;
    background: var(--bg-secondary);
    border: none;
}

.card-flat:hover {
    background: var(--grey-200);
    box-shadow: none;
}

.card-icon {
    width: 56px;
    height: 56px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    font-size: 1.375rem;
    color: var(--text-primary);
    transition: all var(--transition);
}

.card:hover .card-icon {
    background: var(--color-primary);
    color: white;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ==========================================================================
   Products Section
   ========================================================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.product-card {
    position: relative;
    padding: 48px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 0.5px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    overflow: hidden;
}

.product-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.product-card .badge-new {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 5px 12px;
    background: var(--color-primary);
    color: white;
    font-size: 0.6875rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.product-card .product-icon {
    width: 64px;
    height: 64px;
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    font-size: 1.75rem;
    color: var(--text-primary);
    transition: all var(--transition);
}

.product-card:hover .product-icon {
    background: var(--color-primary);
    color: white;
    transform: scale(1.05);
}

.product-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.product-card p {
    margin-bottom: 24px;
    font-size: 0.9375rem;
}

.product-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.product-features .tag {
    padding: 6px 14px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    color: var(--text-secondary);
    transition: all var(--transition-fast);
}

.product-card:hover .tag {
    background: var(--grey-200);
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    text-align: center;
    padding: 40px 24px;
    border-radius: var(--radius-lg);
    background: var(--bg-primary);
    transition: all var(--transition);
}

.feature-card:hover {
    background: var(--bg-secondary);
}

.feature-icon {
    width: 52px;
    height: 52px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.25rem;
    color: var(--text-primary);
    transition: all var(--transition);
}

.feature-card:hover .feature-icon {
    background: var(--color-primary);
    color: white;
    transform: scale(1.08);
}

.feature-card h4 {
    margin-bottom: 8px;
}

.feature-card p {
    font-size: 0.875rem;
}

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: 40px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    border: 0.5px solid var(--border-light);
    box-shadow: var(--shadow-card);
    transition: all var(--transition);
}

.pricing-card.featured {
    border-color: var(--color-primary);
    border-width: 2px;
    transform: scale(1.03);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured .pricing-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 20px;
    background: var(--color-primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    letter-spacing: 0.05em;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-plan {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-tertiary);
}

.pricing-desc {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border-light);
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pricing-features li svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: var(--color-success);
    margin-top: 1px;
}

.pricing-card .btn {
    width: 100%;
}

/* ==========================================================================
   Contact Section
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}

.contact-info h3 {
    margin-bottom: 16px;
}

.contact-info p {
    margin-bottom: 32px;
    font-size: 1.0625rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-details .detail {
    display: flex;
    align-items: center;
    gap: 16px;
}

.contact-details .detail-icon {
    width: 44px;
    height: 44px;
    background: var(--bg-secondary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.contact-details .detail-text h5 {
    font-size: 0.875rem;
    margin-bottom: 2px;
}

.contact-details .detail-text p {
    font-size: 0.875rem;
    margin: 0;
}

/* ---- Form ---- */
.form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-primary);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-secondary);
    border: 1.5px solid transparent;
    border-radius: var(--radius);
    font-size: 0.9375rem;
    color: var(--text-primary);
    transition: all var(--transition-fast);
    outline: none;
}

.form-control:focus {
    background: var(--bg-primary);
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background: #1e293b;
    padding: 64px 0 32px;
    color: #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer .nav-logo {
    color: #f1f5f9;
}

.footer .logo-icon {
    background: #334155;
}

.footer-brand p {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 12px;
    max-width: 280px;
    line-height: 1.6;
}

.footer-col h5 {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
    margin-bottom: 20px;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-col a {
    font-size: 0.875rem;
    color: #94a3b8;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: #f1f5f9;
}

.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid #334155;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-bottom p {
    font-size: 0.75rem;
    color: #64748b;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #64748b;
    transition: all var(--transition-fast);
}

.footer-social a:hover {
    color: #f1f5f9;
    background: #334155;
}

/* ==========================================================================
   Login Page
   ========================================================================== */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: var(--bg-primary);
    border-radius: var(--radius-xl);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    border: 0.5px solid var(--border-light);
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
}

.login-header .logo-icon {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-weight: 800;
    font-size: 24px;
}

.login-header .login-logo {
    display: block;
    max-height: 56px;
    width: auto;
    margin: 0 auto 20px;
}

.login-header h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.login-header p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

.login-form .form-group {
    margin-bottom: 16px;
}

.login-form .btn {
    width: 100%;
    margin-top: 8px;
}

.login-extras {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    font-size: 0.8125rem;
}

.login-extras label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
}

.login-extras a {
    font-size: 0.8125rem;
}

.login-divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
}

.login-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-light);
}

.login-divider span {
    position: relative;
    padding: 0 16px;
    background: var(--bg-primary);
    font-size: 0.8125rem;
    color: var(--text-tertiary);
}

/* ==========================================================================
   Page Header
   ========================================================================== */
.page-header {
    padding: 160px 0 80px;
    text-align: center;
    background: var(--bg-secondary);
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    margin-bottom: 16px;
}

.page-header p {
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* ==========================================================================
   FAQ Section
   ========================================================================== */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.faq-item {
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-primary);
    text-align: left;
    background: transparent;
    transition: background var(--transition-fast);
    cursor: pointer;
    border: none;
}

.faq-question:hover {
    background: var(--bg-secondary);
}

.faq-question .icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform var(--transition);
    color: var(--text-tertiary);
    flex-shrink: 0;
}

.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-smooth), padding 0.4s var(--ease-smooth);
}

.faq-answer-inner {
    padding: 0 24px 20px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ==========================================================================
   Stats Section
   ========================================================================== */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item h3 {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 4px;
}

.stat-item p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
}

/* ==========================================================================
   Product Detail Page
   ========================================================================== */
.product-hero {
    padding: 160px 0 100px;
    text-align: center;
    background: var(--bg-secondary);
}

.product-hero .product-icon-large {
    width: 80px;
    height: 80px;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 2rem;
    color: var(--text-primary);
    box-shadow: var(--shadow-md);
}

.product-hero h1 {
    margin-bottom: 16px;
}

.product-hero p {
    font-size: 1.25rem;
    max-width: 640px;
    margin: 0 auto 40px;
}

.product-features-detail {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.product-feature {
    text-align: center;
    padding: 32px 24px;
}

.product-feature .icon-circle {
    width: 56px;
    height: 56px;
    background: var(--bg-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    font-size: 1.25rem;
    color: var(--text-primary);
}

.product-feature h4 {
    margin-bottom: 8px;
}

.product-feature p {
    font-size: 0.875rem;
}

/* Reports grid */
.reports-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.report-item {
    padding: 20px 24px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    border: 0.5px solid var(--border-light);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all var(--transition-fast);
}

.report-item:hover {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

.report-item .report-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.report-item h5 {
    font-weight: 500;
    font-size: 0.875rem;
}

.report-item p {
    font-size: 0.75rem;
    margin-top: 2px;
}

/* Framework tags */
.frameworks-showcase {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.framework-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    border: 0.5px solid var(--border-light);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    transition: all var(--transition);
}

.framework-tag:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.framework-tag .fw-count {
    padding: 2px 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

/* ==========================================================================
   Privacy / Terms / Info Pages
   ========================================================================== */
.prose {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px;
}

.prose h2 {
    font-size: 1.5rem;
    margin: 48px 0 16px;
}

.prose h3 {
    font-size: 1.25rem;
    margin: 32px 0 12px;
}

.prose p {
    margin-bottom: 16px;
    line-height: 1.7;
}

.prose ul {
    margin: 16px 0;
    padding-left: 24px;
    list-style: disc;
}

.prose ul li {
    margin-bottom: 8px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.6;
}

/* ==========================================================================
   Animations — Scroll reveal
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-smooth), transform 0.7s var(--ease-smooth);
}

.reveal.visible,
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ==========================================================================
   Toast Notifications
   ========================================================================== */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.toast {
    padding: 14px 20px;
    background: var(--bg-primary);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    border: 0.5px solid var(--border-light);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastIn 0.3s var(--ease-smooth);
    max-width: 360px;
}

.toast.success, .toast.toast-success { border-left: 3px solid var(--color-success); }
.toast.error, .toast.toast-error { border-left: 3px solid var(--color-danger); }
.toast.warning, .toast.toast-warning { border-left: 3px solid var(--color-warning); }

@keyframes toastIn {
    from { opacity: 0; transform: translateX(60px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    :root {
        --section-padding: 80px;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .pricing-card.featured {
        transform: none;
    }

    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-features-detail {
        grid-template-columns: repeat(2, 1fr);
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px;
        --header-height: 56px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 40px 24px;
        gap: 24px;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 1.25rem;
    }

    .nav-toggle {
        display: flex;
    }

    .hero {
        padding: 120px 24px 80px;
        min-height: auto;
    }

    .hero-content h1 {
        font-size: clamp(2.25rem, 8vw, 3rem);
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .product-features-detail {
        grid-template-columns: 1fr;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .login-card {
        padding: 36px 28px;
    }

    .section-header {
        margin-bottom: 40px;
    }

    .page-header {
        padding: 120px 0 60px;
    }

    .product-hero {
        padding: 120px 0 60px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn {
        width: 100%;
    }
}

/* ==========================================================================
   Scrollbar
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--grey-300);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--grey-400);
}

/* ==========================================================================
   Utility
   ========================================================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.mb-0 { margin-bottom: 0; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 32px; }
.mt-xl { margin-top: 64px; }

/* ==========================================================================
   Settings Page
   ========================================================================== */
.settings-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg, 12px);
    padding: 32px;
    margin-bottom: 24px;
}

.settings-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.settings-card .form-group {
    margin-bottom: 16px;
}

.settings-card select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23666' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

/* ==========================================================================
   Alerts / Flash Messages
   ========================================================================== */
.alert {
    padding: 14px 20px;
    border-radius: var(--radius-lg, 12px);
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 24px;
    border: 1px solid transparent;
}

.alert-success {
    background: var(--color-success-soft);
    color: #1a7a34;
    border-color: rgba(48, 209, 88, 0.2);
}

.alert-danger {
    background: var(--color-danger-soft);
    color: #c62828;
    border-color: rgba(255, 59, 48, 0.2);
}

.alert-warning {
    background: var(--color-warning-soft);
    color: #8a6d00;
    border-color: rgba(255, 159, 10, 0.2);
}

.alert-info {
    background: var(--color-info-soft);
    color: #0c5a82;
    border-color: rgba(100, 210, 255, 0.2);
}

/* ==========================================================================
   Dashboard
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.dashboard-info {
    margin-top: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--grey-200);
}

.info-row:last-child {
    border-bottom: none;
}

.info-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-value {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text-primary);
}

.role-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: var(--radius-full, 100px);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.role-superadmin {
    background: var(--color-danger-soft);
    color: #c62828;
}

.role-manager {
    background: var(--color-accent-soft);
    color: var(--color-accent);
}

.role-viewer {
    background: var(--grey-100);
    color: var(--grey-600);
}

.product-access-list {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.product-access-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-radius: var(--radius-lg, 12px);
    border: 1px solid var(--grey-200);
    transition: var(--transition);
}

.product-access-item.active {
    border-color: rgba(0, 113, 227, 0.2);
    background: var(--color-accent-soft);
}

.product-access-item h4 {
    font-size: 0.9375rem;
    margin-bottom: 2px;
}

.product-access-item p {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.product-access-item .btn {
    margin-left: auto;
    white-space: nowrap;
}

.product-access-icon {
    width: 44px;
    height: 44px;
    background: var(--grey-100);
    border-radius: var(--radius-md, 8px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-access-item.active .product-access-icon {
    background: rgba(0, 113, 227, 0.12);
    color: var(--color-accent);
}

/* ==========================================================================
   Form Enhancements
   ========================================================================== */
.form-error {
    color: var(--color-danger);
    font-size: 0.8125rem;
    margin-top: 4px;
}

.input-error {
    border-color: var(--color-danger) !important;
}

/* ==========================================================================
   Dashboard Responsive
   ========================================================================== */
@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}
