/* HEX System - Teal/Cyan Theme CSS */

:root {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: #334155;
    --card-bg: rgba(30, 41, 59, 0.8);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-tertiary: #64748b;
    --hex-cyan: #0ea5e9;
    --hex-cyan-light: #38bdf8;
    --hex-cyan-dark: #0284c7;
    --hex-teal: #14b8a6;
    --hex-green: #10b981;
    --hex-purple: #8b5cf6;
    --hex-orange: #f59e0b;
    --hex-red: #ef4444;
    --border-color: rgba(148, 163, 184, 0.2);
    --shadow-color: rgba(14, 165, 233, 0.15);
    --shadow-hover: rgba(14, 165, 233, 0.3);
    --glass-bg: rgba(30, 41, 59, 0.6);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navigation Buttons */
.nav-buttons {
    position: fixed;
    right: 2rem;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 1000;
}

.nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--hex-cyan);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px var(--shadow-color);
    border: none;
}

.nav-btn:hover {
    background: var(--hex-cyan-dark);
    transform: translateX(0) scale(1.1);
}

.nav-btn.visible {
    opacity: 1;
    transform: translateX(0);
}

.nav-btn i {
    font-size: 1.25rem;
}

#homeBtn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a5a);
    box-shadow: 0 4px 15px rgba(238, 90, 90, 0.4);
}

#homeBtn:hover {
    background: linear-gradient(135deg, #ff5252, #e04848);
}

#scrollUpBtn, #scrollDownBtn {
    background: var(--glass-bg);
    border: 1px solid var(--hex-cyan);
    color: var(--hex-cyan);
}

#scrollUpBtn:hover, #scrollDownBtn:hover {
    background: var(--hex-cyan);
    color: white;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

nav {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo i {
    font-size: 1.5rem;
    color: var(--hex-cyan);
}

.logo-icon {
    height: 24px;
    width: auto;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    font-size: 0.95rem;
}

nav ul li a:hover {
    color: var(--hex-cyan);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0c1929 100%);
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

/* Animated Hexagons */
.hex-grid {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.hex-item {
    position: absolute;
    width: 100px;
    height: 115px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(20, 184, 166, 0.05));
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: floatHex 20s ease-in-out infinite;
}

.hex-item:nth-child(1) { top: 10%; left: 5%; animation-delay: 0s; width: 80px; height: 92px; }
.hex-item:nth-child(2) { top: 20%; left: 85%; animation-delay: -4s; width: 120px; height: 138px; }
.hex-item:nth-child(3) { top: 60%; left: 3%; animation-delay: -8s; }
.hex-item:nth-child(4) { top: 70%; left: 90%; animation-delay: -12s; width: 60px; height: 69px; }
.hex-item:nth-child(5) { top: 40%; left: 92%; animation-delay: -2s; width: 90px; height: 104px; }
.hex-item:nth-child(6) { top: 85%; left: 50%; animation-delay: -6s; width: 70px; height: 81px; }

@keyframes floatHex {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.5; }
    50% { transform: translateY(-40px) rotate(10deg); opacity: 0.8; }
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.badge-text {
    color: var(--hex-cyan);
    font-size: 0.9rem;
    font-weight: 600;
}

.main-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.hex-logo {
    display: inline-block;
    background: linear-gradient(135deg, var(--hex-cyan), var(--hex-teal));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3em;
}

.subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--hex-cyan), var(--hex-teal));
    color: white;
    box-shadow: 0 4px 15px var(--shadow-color);
}

.cta-button.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-hover);
}

.cta-button.secondary {
    background: transparent;
    color: var(--hex-cyan);
    border: 2px solid var(--hex-cyan);
}

.cta-button.secondary:hover {
    background: var(--hex-cyan);
    color: white;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: center;
}

.hero-stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--hex-cyan);
}

.hero-stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Content Sections */
.content-section {
    padding: 5rem 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.content-section h2 {
    font-size: 2.25rem;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

.content-section h2 .highlight {
    color: var(--hex-cyan);
}

.section-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.section-alt {
    background: var(--bg-secondary);
    max-width: 100%;
    padding: 5rem 2rem;
}

.section-alt > *:not(h2):not(.section-intro) {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* Overview Grid */
.overview-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 3rem;
    align-items: center;
}

.dashboard-preview {
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
}

.dashboard-header {
    background: var(--bg-tertiary);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

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

.dashboard-title {
    margin-left: 1rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.dashboard-content {
    display: flex;
    min-height: 280px;
}

.dash-sidebar {
    width: 60px;
    background: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.dash-menu-item {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    transition: all 0.3s ease;
}

.dash-menu-item.active {
    background: var(--hex-cyan);
    color: white;
}

.dash-main {
    flex: 1;
    padding: 1.5rem;
}

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

.dash-card {
    background: var(--glass-bg);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    border: 1px solid var(--border-color);
}

.dash-card i {
    font-size: 1.25rem;
    color: var(--hex-cyan);
    display: block;
    margin-bottom: 0.5rem;
}

.dash-card span {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: block;
}

.dash-card small {
    font-size: 0.7rem;
    color: var(--text-tertiary);
}

.dash-chart-area {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 100px;
    padding: 1rem;
    background: var(--glass-bg);
    border-radius: 8px;
}

.dash-chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--hex-cyan), var(--hex-teal));
    border-radius: 4px 4px 0 0;
    animation: barGrow 2s ease-out infinite alternate;
}

.dash-chart-bar:nth-child(1) { height: 60%; animation-delay: 0s; }
.dash-chart-bar:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.dash-chart-bar:nth-child(3) { height: 45%; animation-delay: 0.4s; }
.dash-chart-bar:nth-child(4) { height: 90%; animation-delay: 0.6s; }
.dash-chart-bar:nth-child(5) { height: 70%; animation-delay: 0.8s; }

@keyframes barGrow {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.overview-side {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.overview-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.overview-item i {
    font-size: 1.5rem;
    color: var(--hex-green);
}

.overview-item h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.overview-item p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Feature Cards */
.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--hex-cyan);
    box-shadow: 0 12px 30px var(--shadow-hover);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--hex-cyan), var(--hex-teal));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon i {
    font-size: 1.75rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.feature-list {
    list-style: none;
}

.feature-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--hex-cyan);
    border-radius: 50%;
}

/* Module Accordion */
.module-accordion {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.module-item {
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: all 0.3s ease;
}

.module-item:hover {
    border-color: var(--hex-cyan);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
}

.module-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.module-icon i {
    font-size: 1.5rem;
    color: white;
}

.module-title {
    flex: 1;
}

.module-title h3 {
    font-size: 1.1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.module-title span {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.module-toggle {
    font-size: 1.5rem;
    color: var(--text-tertiary);
    transition: transform 0.3s ease;
}

.module-item.expanded .module-toggle {
    transform: rotate(180deg);
}

.module-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease;
}

.module-item.expanded .module-content {
    max-height: 800px;
    opacity: 1;
    padding: 0 1.5rem 1.5rem;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.module-block h4 {
    font-size: 0.95rem;
    color: var(--hex-cyan);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-block ul {
    list-style: none;
}

.module-block ul li {
    padding: 0.35rem 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.status-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.status-tag {
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.status-tag.new { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }
.status-tag.progress { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.status-tag.hold { background: rgba(148, 163, 184, 0.2); color: #94a3b8; }
.status-tag.done { background: rgba(14, 165, 233, 0.2); color: #0ea5e9; }
.status-tag.fail { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.status-tag.closed { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; }

/* Document Flow */
.document-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    flex-wrap: wrap;
}

.flow-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.flow-item i {
    font-size: 1.5rem;
    color: var(--hex-cyan);
}

.flow-item span {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.flow-arrow {
    color: var(--text-tertiary);
    font-size: 1.25rem;
}

/* Attendance Demo */
.attendance-demo {
    padding: 1rem 0;
}

.attendance-today {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.attendance-clock {
    text-align: center;
}

.clock-time {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--hex-cyan);
}

.clock-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.attendance-divider i {
    font-size: 1.5rem;
    color: var(--text-tertiary);
}

.attendance-total {
    text-align: center;
    padding-left: 2rem;
    border-left: 1px solid var(--border-color);
}

.total-time {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--hex-green);
}

.total-label {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

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

.att-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.att-feature i {
    color: var(--hex-cyan);
}

/* Workflow Tabs */
.workflow-tabs {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.workflow-tab {
    padding: 0.75rem 1.5rem;
    background: var(--glass-bg);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-secondary);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.workflow-tab:hover {
    border-color: var(--hex-cyan);
    color: var(--hex-cyan);
}

.workflow-tab.active {
    background: var(--hex-cyan);
    border-color: var(--hex-cyan);
    color: white;
}

.workflow-panel {
    display: none;
}

.workflow-panel.active {
    display: block;
}

.workflow-steps {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.workflow-step {
    flex: 1;
    min-width: 200px;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    position: relative;
}

.workflow-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -1rem;
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 10px solid var(--hex-cyan);
    transform: translateY(-50%);
}

.workflow-step:last-child::after {
    display: none;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--hex-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-content h4 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Chart Grid */
.chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.chart-box {
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.chart-box h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.chart-box h4 i {
    color: var(--hex-cyan);
}

.chart-box canvas {
    max-height: 250px;
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.benefit-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    border-color: var(--hex-cyan);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(20, 184, 166, 0.1));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.benefit-icon i {
    font-size: 2rem;
    color: var(--hex-cyan);
}

.benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.benefit-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Settings Grid */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.setting-item {
    display: flex;
    gap: 1rem;
    background: var(--card-bg);
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
}

.setting-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--hex-cyan), var(--hex-teal));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.setting-icon i {
    font-size: 1.5rem;
    color: white;
}

.setting-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.setting-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.theme-preview {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.theme-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
}

/* Footer */
footer {
    background: var(--bg-secondary);
    color: var(--text-primary);
    text-align: center;
    padding: 3rem 2rem;
    border-top: 1px solid var(--border-color);
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--hex-cyan);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

footer p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-copyright {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-tertiary);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Responsive */
@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: 1fr;
    }

    .dash-card-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .main-title {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 1.5rem;
    }

    .nav-buttons {
        right: 1rem;
        bottom: 1rem;
    }

    .content-section {
        padding: 3rem 1rem;
    }

    .workflow-step::after {
        display: none;
    }

    .attendance-features {
        grid-template-columns: repeat(2, 1fr);
    }

    .chart-grid {
        grid-template-columns: 1fr;
    }
}
