/**
 * ChargeMe Website Styles
 * Design system for restaurant analytics and charging platform
 * 
 * Table of Contents:
 * 1. Variables
 * 2. Core Styles
 * 3. Layout & Container
 * 4. Header & Navigation
 * 5. Buttons
 * 6. Hero Section
 * 7. Dashboard Section
 * 8. Features Section
 * 9. Integration Section
 * 10. CTA Section
 * 11. Footer
 * 12. Components
 * 13. Animation Utilities
 * 14. Responsive Styles
 */

/* 1. Variables - Enhanced for design system consistency */
:root {
    /* Core colors */
    --bg-primary: #121212;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #222222;
    --bg-card: #28292A;
    --bg-card-hover: #2a2a2a;
    --bg-sidebar: #141414;
    
    /* Borders */
    --border-default: #333333;
    --border-glow: rgba(255, 208, 0, 0.3);
    --border-subtle: #2a2a2a;
    
    /* Accent colors */
    --accent-yellow: #ffd000;
    --accent-yellow-subtle: rgba(255, 208, 0, 0.2);
    --accent-green: #1EB980;
    --accent-blue: #4D9DE0;
    --accent-red: #FF6B6B;
    
    /* Text colors */
    --text-primary: #f8f8f2;
    --text-secondary: #c0c0c0;
    --text-tertiary: #909090;
    --text-label: #6F7071;
    
    /* Typography */
    --font-mono: 'JetBrains Mono', monospace;
    --font-size-xs: 0.75rem;
    --font-size-sm: 0.875rem;
    --font-size-md: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 1.875rem;
    --font-size-4xl: 2.25rem;
    --font-size-5xl: 3rem;
    
    /* Spacing - Using consistent scale */
    --space-1: 0.25rem;  /* 4px */
    --space-2: 0.5rem;   /* 8px */
    --space-3: 0.75rem;  /* 12px */
    --space-4: 1rem;     /* 16px */
    --space-5: 1.5rem;   /* 24px */
    --space-6: 2rem;     /* 32px */
    --space-8: 3rem;     /* 48px */
    --space-10: 4rem;    /* 64px */
    --space-12: 6rem;    /* 96px */
    
    /* Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 12px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.12), 0 1px 2px rgba(0, 0, 0, 0.24);
    --shadow-md: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
    --shadow-lg: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
    --shadow-focus: 0 0 0 3px rgba(255, 208, 0, 0.35);
    --shadow-glow: 0 0 20px rgba(255, 208, 0, 0.2);
    
    /* Animation */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* 2. Core Styles */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-mono);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    position: relative;
}

/* Noise overlay for texture */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 250 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1000;
}

/* 3D Perspective Container */
.perspective-container {
    perspective: 1500px;
    height: 100%;
    width: 100%;
    transform-style: preserve-3d;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-4);
}

h1 {
    font-size: var(--font-size-5xl);
    letter-spacing: -0.03em;
    margin-bottom: var(--space-5);
    font-weight: 700;
}

h2 {
    font-size: var(--font-size-3xl);
    margin-bottom: var(--space-5);
    font-weight: 700;
}

h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-3);
    font-weight: 600;
}

p {
    margin-bottom: var(--space-4);
    font-size: var(--font-size-md);
    color: var(--text-secondary);
}

a {
    color: var(--accent-yellow);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: white;
}

a:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
}

button {
    font-family: var(--font-mono);
}

button:focus {
    outline: none;
    box-shadow: var(--shadow-focus);
}

.highlight {
    color: var(--accent-yellow);
    position: relative;
    display: inline-block;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-yellow);
    opacity: 0.5;
}

/* 3. Layout & Container */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-5);
    position: relative;
    z-index: 2;
}

/* 4. Header & Navigation */
.header {
    background-color: rgba(18, 18, 18, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    border-bottom: 1px solid var(--border-subtle);
    transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header--scrolled {
    background-color: rgba(12, 12, 12, 0.95);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
    padding: 0 var(--space-5);
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.logo__icon {
    width: 2rem;
    height: 2rem;
    background-color: var(--accent-yellow);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 20%);
    box-shadow: 0 0 15px rgba(255, 208, 0, 0.5);
    transition: transform var(--transition-normal);
}

.logo:hover .logo__icon {
    transform: scale(1.1) rotate(-5deg);
}

.logo__text {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.logo__text span {
    color: var(--accent-yellow);
}

/* Navigation */
.nav {
    display: flex;
    gap: var(--space-8);
}

.nav__link {
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
    font-weight: 500;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.nav__link::before {
    content: attr(data-text);
    position: absolute;
    color: var(--accent-yellow);
    top: 0;
    left: 0;
    width: 0;
    overflow: hidden;
    transition: width var(--transition-normal);
    white-space: nowrap;
}

.nav__link:hover::before,
.nav__link--active::before {
    width: 100%;
}

.nav__link--active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -26px;
    height: 3px;
    background-color: var(--accent-yellow);
    box-shadow: 0 0 10px rgba(255, 208, 0, 0.5);
}

/* 5. Buttons */
.button {
    position: relative;
    border: none;
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-5);
    font-size: var(--font-size-md);
    font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition-normal), 
                box-shadow var(--transition-normal), 
                background-color var(--transition-normal),
                color var(--transition-normal),
                border-color var(--transition-normal);
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    overflow: hidden;
}

/* Button variants */
.button--primary {
    background-color: var(--accent-yellow);
    color: var(--bg-primary);
}

.button--secondary {
    background-color: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-default);
}

.button--sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--font-size-sm);
}

/* Button hover states */
.button--primary:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 0 15px rgba(255, 208, 0, 0.6);
}

.button--secondary:hover {
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    transform: translateY(-2px);
}

/* Button glow effect */
.button__glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 208, 0, 0.8) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    mix-blend-mode: overlay;
    pointer-events: none;
}

.button--primary:hover .button__glow {
    opacity: 0.5;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        opacity: 0.2;
        transform: scale(0.95);
    }
    50% {
        opacity: 0.5;
        transform: scale(1);
    }
    100% {
        opacity: 0.2;
        transform: scale(0.95);
    }
}

/* 6. Hero Section */
.hero {
    position: relative;
    padding: var(--space-12) 0;
    overflow: hidden;
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
}

.hero::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(
        circle at 30% 30%, 
        rgba(255, 208, 0, 0.05) 0%, 
        transparent 50%
    );
    z-index: 0;
}

/* Hero particles background */
.hero__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero__particles::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 3px;
    height: 3px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    box-shadow: 
        0 0 60px 15px rgba(255, 208, 0, 0.2),
        100px 100px 2px rgba(255, 255, 255, 0.1),
        200px 200px 2px rgba(255, 255, 255, 0.05),
        300px 300px 2px rgba(255, 255, 255, 0.05),
        400px 400px 2px rgba(255, 255, 255, 0.05),
        500px 500px 2px rgba(255, 255, 255, 0.05),
        600px 200px 2px rgba(255, 255, 255, 0.05),
        700px 300px 2px rgba(255, 255, 255, 0.05),
        800px 400px 2px rgba(255, 255, 255, 0.05),
        900px 500px 2px rgba(255, 255, 255, 0.05);
    animation: particle-drift 20s linear infinite;
}

@keyframes particle-drift {
    0% {
        transform: rotate(0deg) translateY(0);
    }
    100% {
        transform: rotate(360deg) translateY(-100px);
    }
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
}

.hero__eyebrow {
    display: inline-block;
    background-color: var(--accent-yellow-subtle);
    color: var(--accent-yellow);
    font-size: var(--font-size-xs);
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: relative;
    overflow: hidden;
}

.hero__eyebrow::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 50%,
        transparent 100%
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 200%;
    }
}

.hero__title {
    position: relative;
    line-height: 1.1;
    margin-bottom: var(--space-5);
}

.hero__title span {
    color: var(--accent-yellow);
}

.hero__description {
    font-size: var(--font-size-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    max-width: 540px;
}

.hero__buttons {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
    opacity: 0.7;
    animation: scroll-fade 2s ease-in-out infinite;
}

.scroll-indicator__mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-tertiary);
    border-radius: 20px;
    position: relative;
}

.scroll-indicator__wheel {
    position: absolute;
    width: 6px;
    height: 6px;
    background-color: var(--text-primary);
    border-radius: 50%;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
    0% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(15px);
    }
    100% {
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes scroll-fade {
    0%, 100% {
        opacity: 0.7;
    }
    50% {
        opacity: 0.3;
    }
}

.scroll-indicator__arrows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.scroll-indicator__arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--text-tertiary);
    border-right: 2px solid var(--text-tertiary);
    transform: rotate(45deg);
    animation: arrow-bounce 2s infinite;
    opacity: 0;
}

.scroll-indicator__arrows span:nth-child(1) {
    animation-delay: 0s;
}

.scroll-indicator__arrows span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-indicator__arrows span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes arrow-bounce {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(5px, 5px);
    }
}

/* Device Preview */
.device-preview {
    position: relative;
}

.device-preview__glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 208, 0, 0.2) 0%, transparent 70%);
    filter: blur(40px);
    z-index: 0;
    animation: glow-pulse 4s infinite alternate ease-in-out;
}

@keyframes glow-pulse {
    0% {
        opacity: 0.5;
        transform: translate(-50%, -50%) scale(0.9);
    }
    100% {
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

.device-preview__container {
    position: relative;
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    z-index: 1;
}

.device-preview__border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-yellow);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 5s infinite alternate ease-in-out;
}

.device-preview__inner {
    background-color: var(--bg-tertiary);
    border-radius: 50%;
    padding: var(--space-10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    aspect-ratio: 1/1;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(255, 208, 0, 0.15), inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.device-preview__inner::before {
    content: "";
    position: absolute;
    top: -10%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: radial-gradient(
        circle at center,
        rgba(255, 208, 0, 0.08) 0%,
        transparent 70%
    );
    z-index: 0;
}

.device-preview__label {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--accent-yellow);
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1;
    text-shadow: 0 0 10px rgba(255, 208, 0, 0.5);
}

.device-preview__waves {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    border-radius: 50%;
    pointer-events: none;
}

.device-preview__waves::before,
.device-preview__waves::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 208, 0, 0.3);
    border-radius: 50%;
    animation: ripple 4s infinite;
}

.device-preview__waves::after {
    animation-delay: 1s;
}

@keyframes ripple {
    0% {
        width: 0%;
        height: 0%;
        opacity: 0.8;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

/* 7. Dashboard Section */
.dashboard-section {
    padding: var(--space-12) 0;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.dashboard-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(var(--bg-secondary) 2px, transparent 2px),
        linear-gradient(90deg, var(--bg-secondary) 2px, transparent 2px);
    background-size: 40px 40px;
    background-position: center center;
    opacity: 0.05;
    z-index: 0;
}

.section__title {
    font-size: var(--font-size-4xl);
    font-weight: 700;
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 1;
}

.section__subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    max-width: 800px;
    position: relative;
    z-index: 1;
}

/* Section Dividers */
.section__divider {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    overflow: hidden;
    line-height: 0;
    z-index: 2;
}

.section__divider--flip {
    top: -1px;
    bottom: auto;
    transform: rotate(180deg);
}

.section__divider svg {
    display: block;
    width: 100%;
    height: 120px;
}

/* Dashboard components */
.dashboard-preview {
    background-color: var(--bg-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    border: 1px solid var(--border-subtle);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.dashboard-preview:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
}

/* Dashboard tabs */
.dashboard-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 var(--space-4);
}

.dashboard-tabs__button {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-normal);
}

.dashboard-tabs__button::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-yellow);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.dashboard-tabs__button:hover {
    color: var(--text-primary);
}

.dashboard-tabs__button--active {
    color: var(--accent-yellow);
}

.dashboard-tabs__button--active::after {
    transform: scaleX(1);
}

/* Dashboard panel/body */
.dashboard__body {
    padding: var(--space-5);
}

.dashboard__panel {
    display: block;
}

.dashboard__panel[hidden] {
    display: none;
}

.dashboard__placeholder {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    border: 1px dashed var(--border-default);
    border-radius: var(--radius-md);
}

.dashboard__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 var(--space-4);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: var(--space-4);
}

.dashboard__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin-bottom: 0;
}

/* Time selector */
.time-selector {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.time-selector__option {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    cursor: pointer;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: all var(--transition-normal);
}

.time-selector__option:hover {
    color: var(--text-primary);
}

.time-selector__option--active {
    color: var(--accent-yellow);
    background-color: var(--accent-yellow-subtle);
}

/* Metrics grid */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.metric-card {
    background-color: var(--bg-card);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--border-default);
}

.metric-card--updating {
    transform: scale(0.98);
    opacity: 0.7;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.metric-card__label {
    color: var(--text-label);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-2);
}

.metric-card__value {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-2);
}

.metric-card__trend {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--font-size-xs);
    margin-bottom: var(--space-2);
}

.metric-card__trend--up {
    color: var(--accent-green);
}

.metric-card__trend--down {
    color: var(--accent-red);
}

.metric-card__sparkline {
    height: 30px;
    margin-top: auto;
    border-radius: var(--radius-sm);
}

.metric-card__rating {
    display: flex;
    gap: 2px;
    margin-top: auto;
}

.star {
    color: var(--text-tertiary);
    font-size: var(--font-size-md);
}

.star--active {
    color: var(--accent-yellow);
}

.star--half-active {
    position: relative;
    color: var(--text-tertiary);
}

.star--half-active::before {
    content: '★';
    position: absolute;
    color: var(--accent-yellow);
    width: 50%;
    overflow: hidden;
}

/* Dashboard charts */
.dashboard__charts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--space-4);
    margin-top: var(--space-5);
}

.chart-container {
    background-color: var(--bg-card);
    padding: var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-normal);
}

.chart-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--border-default);
}

.chart-container__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-4);
}

.chart-container__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.chart-container__content {
    height: 250px;
    position: relative;
}

.chart-legend {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
}

.chart-legend__item {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin-right: var(--space-2);
}

.chart-legend__color {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* Bar Chart */
.bar-chart {
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding-top: var(--space-4);
}

.bar-chart__day {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 100%;
}

.bar-chart__label {
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin-top: var(--space-2);
}

.bar-chart__bars {
    height: 100%;
    width: 30px;
    position: relative;
    display: flex;
    justify-content: center;
}

.bar-chart__bar {
    width: 15px;
    background-color: var(--accent-yellow);
    border-radius: var(--radius-sm);
    position: absolute;
    bottom: 0;
    transition: height 1s ease;
}

.bar-chart__bar--previous {
    width: 15px;
    background-color: var(--text-tertiary);
    opacity: 0.5;
    left: 0;
}

.bar-chart__bar:not(.bar-chart__bar--previous) {
    right: 0;
}

/* Pie Chart */
.pie-chart {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    position: relative;
    margin: 0 auto var(--space-4);
}

.pie-chart__segment {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, 50% 0%);
    transform: rotate(calc(var(--start) * 360deg));
    background-color: var(--color);
}

.pie-chart__segment::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--bg-card);
    clip-path: polygon(50% 50%, 50% 0%, 100% 0%, 100% 100%, 0% 100%, 0% 0%, 50% 0%);
    transform: rotate(calc((var(--end) - var(--start)) * 360deg));
}

.pie-chart__center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 65%;
    height: 65%;
    background-color: var(--bg-card);
    border-radius: 50%;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.2);
}

.pie-chart__legend {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    font-size: var(--font-size-xs);
    color: var(--text-tertiary);
    margin-top: var(--space-2);
}

/* 8. Features Section */
.features-section {
    padding: var(--space-12) 0;
    position: relative;
    background-color: var(--bg-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-10);
}

.feature-card {
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-slow);
    border: 1px solid var(--border-subtle);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.05) 50%,
        transparent 100%
    );
    transition: transform var(--transition-slow);
    pointer-events: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-yellow);
}

.feature-card:hover::after {
    transform: translateX(100%);
}

.feature-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.feature-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-yellow-subtle);
    flex-shrink: 0;
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-card__icon {
    transform: scale(1.1);
    background-color: var(--accent-yellow);
}

.feature-card__icon svg {
    width: 22px;
    height: 22px;
    fill: var(--accent-yellow);
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-card__icon svg {
    fill: var(--bg-primary);
}

.feature-card__title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    position: relative;
}

.feature-card__title::before {
    content: "//";
    color: var(--accent-yellow);
    margin-right: var(--space-2);
    opacity: 0.7;
    font-weight: 400;
}

.feature-card__description {
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
    flex-grow: 1;
    margin-bottom: var(--space-4);
}

.feature-card__cta {
    margin-top: auto;
}

.feature-card__link {
    display: inline-flex;
    align-items: center;
    color: var(--accent-yellow);
    font-size: var(--font-size-sm);
    font-weight: 500;
    text-decoration: none;
    position: relative;
    padding: var(--space-1) 0;
}

.feature-card__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--accent-yellow);
    transition: width var(--transition-normal);
}

.feature-card__link:hover::after {
    width: 100%;
}

/* Features Showcase */
.features-showcase {
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
}

.features-showcase__tabs {
    display: flex;
    border-bottom: 1px solid var(--border-subtle);
    padding: 0 var(--space-4);
}

.features-showcase__tab {
    background: none;
    border: none;
    color: var(--text-tertiary);
    font-family: var(--font-mono);
    font-size: var(--font-size-sm);
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    position: relative;
    transition: color var(--transition-normal);
}

.features-showcase__tab::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--accent-yellow);
    transform: scaleX(0);
    transition: transform var(--transition-normal);
}

.features-showcase__tab:hover {
    color: var(--text-primary);
}

.features-showcase__tab--active {
    color: var(--accent-yellow);
}

.features-showcase__tab--active::after {
    transform: scaleX(1);
}

.features-showcase__content {
    padding: var(--space-5);
}

.features-showcase__panel {
    display: none;
}

.features-showcase__panel--active {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    align-items: center;
}

.features-showcase__image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.features-showcase__screenshot {
    width: 100%;
    display: block;
    border-radius: var(--radius-md);
}

.features-showcase__text {
    padding: var(--space-4);
}

.features-showcase__text h3 {
    color: var(--accent-yellow);
    margin-bottom: var(--space-3);
}

.features-showcase__text p {
    margin-bottom: var(--space-4);
}

.features-showcase__list {
    list-style: none;
    padding: 0;
}

.features-showcase__list li {
    position: relative;
    padding-left: var(--space-5);
    margin-bottom: var(--space-2);
    color: var(--text-secondary);
}

.features-showcase__list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-yellow);
}

/* 9. Integration Section */
.integration-section {
    padding: var(--space-12) 0;
    background-color: var(--bg-secondary);
    position: relative;
    overflow: hidden;
}

.integration-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-8);
    align-items: center;
}

.device-card {
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-slow);
    border: 1px solid var(--border-subtle);
    height: 100%;
    position: relative;
    overflow: hidden;
}

.device-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--accent-yellow);
}

.device-card__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.device-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-yellow-subtle);
    flex-shrink: 0;
}

.device-card__icon svg {
    width: 22px;
    height: 22px;
    fill: var(--accent-yellow);
}

.device-card__title {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-4);
}

.device-feature {
    margin-bottom: var(--space-4);
}

.device-feature__header {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-2);
}

.device-feature__checkmark {
    color: var(--accent-green);
    font-weight: bold;
}

.device-feature__title {
    color: var(--text-secondary);
}

.device-feature__description {
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
    margin-left: var(--space-5);
    margin-bottom: var(--space-3);
}

.device-preview-small {
    margin-top: var(--space-6);
    display: flex;
    justify-content: center;
}

.device-preview-small__container {
    position: relative;
    width: 150px;
    height: 150px;
}

.device-preview-small__border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid var(--accent-yellow);
    border-radius: 50%;
    opacity: 0.6;
    animation: pulse 3s infinite alternate ease-in-out;
}

.device-preview-small__inner {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    background-color: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 30px rgba(255, 208, 0, 0.15), inset 0 0 15px rgba(0, 0, 0, 0.3);
}

.device-preview-small__center {
    width: 30%;
    height: 30%;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(255, 208, 0, 0.5);
}

.device-preview-small__pulse {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    border-radius: 50%;
    pointer-events: none;
}

.device-preview-small__pulse::before,
.device-preview-small__pulse::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    border: 1px solid rgba(255, 208, 0, 0.3);
    border-radius: 50%;
    animation: ripple 3s infinite;
}

.device-preview-small__pulse::after {
    animation-delay: 1s;
}

/* 10. CTA Section */
.cta-section {
    padding: var(--space-12) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-color: var(--bg-primary);
}

.cta-section__particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.cta-section__particles::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    width: 3px;
    height: 3px;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    box-shadow: 
        0 0 60px 15px rgba(255, 208, 0, 0.2),
        100px 100px 2px rgba(255, 255, 255, 0.05),
        200px 200px 2px rgba(255, 255, 255, 0.05),
        300px 300px 2px rgba(255, 255, 255, 0.05),
        400px 400px 2px rgba(255, 255, 255, 0.05),
        500px 500px 2px rgba(255, 255, 255, 0.05),
        600px 200px 2px rgba(255, 255, 255, 0.05),
        700px 300px 2px rgba(255, 255, 255, 0.05),
        800px 400px 2px rgba(255, 255, 255, 0.05),
        900px 500px 2px rgba(255, 255, 255, 0.05);
    animation: particle-drift-cta 15s linear infinite alternate;
}

@keyframes particle-drift-cta {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-100px);
    }
}

.cta-section__container {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-section__title {
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-5);
}

.cta-section__title span {
    color: var(--accent-yellow);
    position: relative;
}

.cta-section__title span::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -5px;
    height: 2px;
    background-color: var(--accent-yellow);
    opacity: 0.5;
}

.cta-section__description {
    margin-bottom: var(--space-8);
    font-size: var(--font-size-lg);
}

/* Testimonials */
.testimonials {
    margin-top: var(--space-8);
    padding: var(--space-6);
    background-color: var(--bg-tertiary);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
    position: relative;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.testimonials__item {
    display: none;
}

.testimonials__item--active {
    display: block;
    animation: fade-in 0.5s ease;
}

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

.testimonials__content {
    font-size: var(--font-size-lg);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
    line-height: 1.6;
    font-style: italic;
    position: relative;
}

.testimonials__content::before,
.testimonials__content::after {
    content: '"';
    color: var(--accent-yellow);
    font-size: 1.5em;
    line-height: 0;
    position: relative;
    vertical-align: middle;
}

.testimonials__author {
    margin-top: var(--space-4);
}

.testimonials__author-name {
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.testimonials__author-title {
    font-size: var(--font-size-sm);
    color: var(--text-tertiary);
}

.testimonials__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: var(--space-5);
    gap: var(--space-4);
}

.testimonials__control {
    background: none;
    border: none;
    color: var(--text-tertiary);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    border: 1px solid var(--border-subtle);
}

.testimonials__control:hover {
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

.testimonials__indicators {
    display: flex;
    gap: var(--space-2);
}

.testimonials__indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--text-tertiary);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.testimonials__indicator--active {
    background-color: var(--accent-yellow);
    box-shadow: 0 0 5px var(--accent-yellow);
}

/* 11. Footer */
.footer {
    background-color: var(--bg-sidebar);
    padding: var(--space-8) 0 var(--space-5);
    border-top: 1px solid var(--border-subtle);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: var(--space-6);
}

.logo--footer {
    margin-bottom: var(--space-4);
}

.footer__description {
    color: var(--text-tertiary);
    margin-bottom: var(--space-5);
    font-size: var(--font-size-sm);
}

.social-links {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.social-links__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-card);
    transition: all var(--transition-normal);
}

.social-links__item svg {
    width: 18px;
    height: 18px;
    fill: var(--text-tertiary);
    transition: all var(--transition-normal);
}

.social-links__item:hover {
    background-color: var(--accent-yellow);
    transform: translateY(-2px);
}

.social-links__item:hover svg {
    fill: var(--bg-primary);
}

.footer__heading {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    position: relative;
    display: inline-block;
}

.footer__heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 30px;
    height: 2px;
    background-color: var(--accent-yellow);
}

.footer__menu {
    list-style: none;
    padding: 0;
}

.footer__menu-item {
    margin-bottom: var(--space-2);
}

.footer__menu-item a {
    color: var(--text-tertiary);
    font-size: var(--font-size-sm);
    transition: all var(--transition-normal);
    position: relative;
    display: inline-block;
}

.footer__menu-item a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background-color: var(--accent-yellow);
    transition: width var(--transition-normal);
}

.footer__menu-item a:hover {
    color: var(--accent-yellow);
    transform: translateX(3px);
}

.footer__menu-item a:hover::after {
    width: 100%;
}

.footer__bottom {
    margin-top: var(--space-8);
    padding-top: var(--space-5);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-subtle);
    color: var(--text-tertiary);
    font-size: var(--font-size-xs);
}

.footer__legal {
    display: flex;
    gap: var(--space-4);
}

.footer__legal-link {
    color: var(--text-tertiary);
    transition: color var(--transition-fast);
}

.footer__legal-link:hover {
    color: var(--accent-yellow);
}

/* 12. Components */
.particle {
    position: absolute;
    background-color: var(--accent-yellow);
    border-radius: 50%;
    animation: float 15s infinite linear;
    pointer-events: none;
    box-shadow: 0 0 10px 2px rgba(255, 208, 0, 0.3);
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
    }
    25% {
        transform: translateY(-30px) translateX(10px);
    }
    50% {
        transform: translateY(-50px) translateX(-10px);
    }
    75% {
        transform: translateY(-20px) translateX(20px);
    }
    100% {
        transform: translateY(0) translateX(0);
    }
}

@keyframes pulse {
    0% {
        opacity: 0.6;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 208, 0, 0.1);
    }
    70% {
        opacity: 0.8;
        transform: scale(1.1);
        box-shadow: 0 0 0 15px rgba(255, 208, 0, 0);
    }
    100% {
        opacity: 0.6;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(255, 208, 0, 0);
    }
}

@keyframes dash {
    to {
        stroke-dashoffset: 0;
    }
}

/* 13. Animation Utilities */
.slide-in {
    opacity: 0;
    transform: translateX(-50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in.visible {
    opacity: 1;
    transform: translateX(0);
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.slide-in-right.visible {
    opacity: 1;
    transform: translateX(0);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal.from-left {
    transform: translateY(30px) translateX(-30px);
}

.reveal.from-right {
    transform: translateY(30px) translateX(30px);
}

.reveal.from-left.visible,
.reveal.from-right.visible {
    transform: translateY(0) translateX(0);
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

.delay-3 {
    transition-delay: 0.3s;
}

/* 14. Responsive Styles */
@media (max-width: 1200px) {
    :root {
        --font-size-5xl: 2.75rem;
        --font-size-4xl: 2rem;
    }
}

@media (max-width: 1024px) {
    .hero__grid, 
    .integration-grid {
        grid-template-columns: 1fr;
        gap: var(--space-6);
    }
    
    .metrics-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard__charts {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6) var(--space-5);
    }

    .features-showcase__panel--active {
        grid-template-columns: 1fr;
        gap: var(--space-5);
    }
}

@media (max-width: 768px) {
    :root {
        --font-size-5xl: 2.5rem;
        --font-size-4xl: 2rem;
        --font-size-3xl: 1.75rem;
    }
    
    .hero {
        padding: var(--space-8) 0;
    }
    
    .nav {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .metrics-grid {
        grid-template-columns: 1fr;
    }
    
    .footer__grid {
        grid-template-columns: 1fr;
    }
    
    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

@media (max-width: 480px) {
    :root {
        --font-size-5xl: 2rem;
        --font-size-4xl: 1.75rem;
        --space-12: 4rem;
    }
    
    .hero__buttons {
        flex-direction: column;
        gap: var(--space-3);
    }
    
    .dashboard-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .features-showcase__tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}