/* ===================================
   First Software Solutions - Fintech Theme
   Modern, clean, dark/light design
   =================================== */

:root {
    --bg-dark: #0a1628;
    --bg-darker: #060f1d;
    --bg-card: #0f1f38;
    --bg-card-hover: #142847;
    --white: #ffffff;
    --off-white: #f0f4f8;
    --light-gray: #cbd5e1;
    --mid-gray: #64748b;
    --dark-gray: #334155;
    --text-primary: #e2e8f0;
    --text-secondary: #94a3b8;
    --accent: #3b82f6;
    --accent-light: #60a5fa;
    --accent-glow: rgba(59, 130, 246, 0.3);
    --gradient-start: #3b82f6;
    --gradient-end: #8b5cf6;
    --success: #10b981;
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    
    --transition: cubic-bezier(0.4, 0, 0.2, 1);
    --radius: 12px;
    --radius-sm: 8px;
}

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

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

body {
    font-family: var(--font-sans);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: var(--white);
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.2;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===================================
   Navigation
   =================================== */
.main-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 3rem;
    background: rgba(10, 22, 40, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-left {
    flex: 0 0 auto;
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--accent);
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 0.25rem;
}

.nav-links a {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: all 0.3s var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.06);
}

.nav-right {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.lang-btn {
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--mid-gray);
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    transition: color 0.3s ease;
    border-radius: 4px;
}

.lang-btn:hover {
    color: var(--text-secondary);
}

.lang-btn.active {
    color: var(--white);
}

.lang-divider {
    color: var(--mid-gray);
    font-size: 0.75rem;
    opacity: 0.4;
}

.nav-contact-btn {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--white);
    background: var(--accent);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    transition: all 0.3s var(--transition);
}

.nav-contact-btn:hover {
    background: var(--accent-light);
    box-shadow: 0 0 20px var(--accent-glow);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    transition: all 0.3s var(--transition);
}

/* ===================================
   Menu Overlay (Mobile)
   =================================== */
.menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.menu-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-close::before,
.menu-close::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: background 0.3s;
}

.menu-close::before { transform: rotate(45deg); }
.menu-close::after { transform: rotate(-45deg); }

.menu-close:hover::before,
.menu-close:hover::after {
    background: var(--accent);
}

.menu-content {
    text-align: center;
    width: 100%;
    max-width: 400px;
    padding: 2rem;
}

.menu-links {
    list-style: none;
    margin-bottom: 3rem;
}

.menu-links li {
    margin: 0.5rem 0;
}

.menu-links a {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-block;
    padding: 0.5rem 0;
    transition: color 0.3s;
}

.menu-links a:hover,
.menu-links a.active {
    color: var(--accent);
}

.menu-footer p {
    font-size: 0.85rem;
    color: var(--mid-gray);
}

.menu-footer a {
    color: var(--accent);
}

/* ===================================
   Pages
   =================================== */
.page {
    display: none;
    min-height: 100vh;
    padding-top: 65px;
}

.page.active {
    display: block;
    animation: fadeIn 0.4s var(--transition);
}

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

/* Page Header */
.page-header {
    text-align: center;
    padding: 5rem 2rem 3rem;
    border-bottom: 1px solid var(--border);
}

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
    padding: 0.35rem 1rem;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 100px;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 3.5rem);
    color: var(--white);
    letter-spacing: -0.02em;
}

.page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.page-intro {
    font-size: 1.15rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 700px;
    margin: 0 auto 4rem;
    line-height: 1.8;
}

/* ===================================
   Home Page - Hero
   =================================== */
.page-home {
    padding-top: 65px;
}

.hero {
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-glow {
    position: absolute;
    top: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 600px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

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

.hero-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.gradient-text {
    background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

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

/* Buttons */
.btn-primary {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    background: var(--accent);
    padding: 0.8rem 2rem;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--transition);
}

.btn-primary:hover {
    background: var(--accent-light);
    box-shadow: 0 0 30px var(--accent-glow);
    transform: translateY(-1px);
}

.btn-secondary {
    display: inline-block;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: transparent;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    border: 1px solid var(--border-hover);
    cursor: pointer;
    transition: all 0.3s var(--transition);
}

.btn-secondary:hover {
    color: var(--white);
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

/* Stats Section */
.stats-section {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 3rem 0;
    background: rgba(15, 31, 56, 0.5);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
}

/* Teaser Section */
.teaser-section {
    padding: 6rem 0;
}

.teaser-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.8;
}

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

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

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: var(--radius-sm);
    margin-bottom: 1.25rem;
    color: var(--accent);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: var(--white);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.teaser-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ===================================
   About Page
   =================================== */
.about-intro {
    max-width: 800px;
    margin: 0 auto 4rem;
}

.large-text {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.9;
    text-align: center;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 5rem;
}

.about-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    transition: all 0.3s var(--transition);
}

.about-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.about-num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(59, 130, 246, 0.2);
    display: block;
    margin-bottom: 1rem;
}

.about-card h3 {
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.about-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Team Section */
.team-section {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid var(--border);
}

.team-grid {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.team-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    max-width: 400px;
    text-align: left;
}

.team-info {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.team-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.team-name-row h3 {
    font-size: 1.25rem;
    color: var(--white);
}

.linkedin-link {
    color: var(--mid-gray);
    transition: color 0.3s, transform 0.3s;
    display: inline-flex;
}

.linkedin-link:hover {
    color: #0077b5;
    transform: scale(1.1);
}

.linkedin-link svg {
    width: 20px;
    height: 20px;
}

.team-role {
    font-size: 0.85rem;
    color: var(--accent);
    font-weight: 500;
}

.team-edu {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-style: italic;
}

.team-email {
    font-size: 0.85rem;
    color: var(--accent-light);
    transition: color 0.3s;
    margin-top: 0.25rem;
}

.team-email:hover {
    color: var(--white);
}

/* ===================================
   Product Page
   =================================== */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 5rem;
    margin-bottom: 5rem;
}

.product-feature {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.product-feature.reverse {
    direction: rtl;
}

.product-feature.reverse > * {
    direction: ltr;
}

.product-feature-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(59, 130, 246, 0.15);
    line-height: 1;
}

.product-feature-content h3 {
    font-size: 1.5rem;
    color: var(--white);
}

.product-feature-content p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Code Block Visual */
.code-block {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.code-header {
    display: flex;
    gap: 6px;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.code-block pre {
    padding: 1.25rem;
    overflow-x: auto;
}

.code-block code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.code-keyword { color: #c678dd; }
.code-string { color: #98c379; }

/* Metric Cards */
.metric-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.metric-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s var(--transition);
}

.metric-card:hover {
    border-color: var(--border-hover);
}

.metric-value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.metric-value.positive {
    color: var(--success);
}

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

/* Compliance Badges */
.compliance-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.badge {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s var(--transition);
}

.badge:hover {
    border-color: rgba(59, 130, 246, 0.3);
}

.badge svg {
    width: 32px;
    height: 32px;
    color: var(--success);
}

.badge span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* Product CTA */
.product-cta-section {
    text-align: center;
    padding: 4rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.product-cta-section h2 {
    font-size: 2rem;
    color: var(--white);
    margin-bottom: 1rem;
}

.product-cta-section p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

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

/* 2-col features grid variant */
.features-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

/* ===================================
   Services & Products Page
   =================================== */
.sp-section {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.sp-section:last-of-type {
    border-bottom: none;
    margin-bottom: 3rem;
}

.sp-section-header {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.sp-num {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: rgba(59, 130, 246, 0.15);
    line-height: 1;
    flex-shrink: 0;
}

.sp-section-header h2 {
    font-size: 1.6rem;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.sp-section-subtitle {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
}

.sp-section-body > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2rem;
    max-width: 750px;
}

/* Service offerings list */
.sp-offerings {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.sp-offering-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    transition: border-color 0.3s var(--transition);
}

.sp-offering-item:hover {
    border-color: var(--border-hover);
}

.sp-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--accent);
}

.sp-offering-item span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Client reference */
.sp-client-ref {
    margin-top: 2.5rem;
}

.sp-client-ref h3 {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mid-gray);
    margin-bottom: 1rem;
}

.sp-client-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    transition: border-color 0.3s var(--transition);
}

.sp-client-card:hover {
    border-color: var(--border-hover);
}

.sp-client-info h4 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.sp-client-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

.sp-client-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Product card */
.sp-product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
    margin-top: 1.5rem;
}

.sp-product-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.sp-product-header h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
}

.sp-product-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid rgba(59, 130, 246, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sp-product-card > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.sp-product-features {
    list-style: none;
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.sp-product-features li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding-left: 1.25rem;
    position: relative;
}

.sp-product-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

/* Roster Preview */
.roster-preview {
    background: var(--bg-darker);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.roster-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--border);
}

.roster-title {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.roster-badge {
    font-size: 0.65rem;
    font-weight: 600;
    color: var(--success);
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.roster-grid-demo {
    padding: 0.75rem 1.25rem;
}

.roster-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border);
}

.roster-row:last-child {
    border-bottom: none;
}

.roster-name {
    width: 80px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.roster-shift {
    flex: 1;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.25rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.shift-early {
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent-light);
}

.shift-late {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
}

.shift-night {
    background: rgba(99, 102, 241, 0.15);
    color: #818cf8;
}

.shift-off {
    background: rgba(255, 255, 255, 0.04);
    color: var(--mid-gray);
}

/* Rules List */
.rules-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.rule-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    transition: all 0.3s var(--transition);
}

.rule-item:hover {
    border-color: var(--border-hover);
}

.rule-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--success);
}

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

/* ===================================
   Contact Page
   =================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.contact-block {
    margin-bottom: 2.5rem;
}

.contact-block h3 {
    font-family: var(--font-sans);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.contact-block p {
    color: var(--text-secondary);
    line-height: 1.9;
}

.contact-block a {
    color: var(--accent-light);
    transition: color 0.3s;
}

.contact-block a:hover {
    color: var(--white);
}

.person {
    margin-bottom: 1rem;
}

.person strong {
    display: block;
    color: var(--white);
    font-size: 1rem;
}

.person span {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.person .person-education {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--mid-gray);
}

.person a {
    font-size: 0.85rem;
    color: var(--accent-light);
}

.person a:hover {
    color: var(--white);
}

.person .person-name-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.25rem;
}

.person .person-linkedin {
    display: inline-flex;
    align-items: center;
    color: var(--mid-gray);
    transition: color 0.3s, transform 0.3s;
}

.person .person-linkedin:hover {
    color: #0077b5;
    transform: scale(1.1);
}

.person .person-linkedin svg {
    width: 18px;
    height: 18px;
}

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem;
}

.form-field {
    margin-bottom: 1.5rem;
}

.form-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    color: var(--text-primary);
    transition: border-color 0.3s;
}

.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: rgba(59, 130, 246, 0.05);
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.captcha-field {
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
}

.captcha-field label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.captcha-field #captchaQuestion {
    color: var(--accent);
    font-size: 1rem;
}

.captcha-field input[type="number"] {
    width: 100px;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
}

/* Form Messages */
.form-message {
    display: none;
    padding: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
}

.form-message.success {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-message.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: 3rem 2rem 2rem;
    background: var(--bg-darker);
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-brand a {
    text-decoration: none;
    display: block;
}

.footer-logo {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    font-size: 0.8rem;
    color: var(--mid-gray);
}

.footer-nav {
    display: flex;
    gap: 1.5rem;
}

.footer-nav a {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.footer-nav a:hover {
    color: var(--white);
}

.footer-contact p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.footer-contact a {
    color: var(--accent-light);
    transition: color 0.3s;
}

.footer-contact a:hover {
    color: var(--white);
}

.footer-legal {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: var(--mid-gray);
}

.footer-legal-links {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.footer-legal-links a {
    color: var(--mid-gray);
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: var(--text-secondary);
}

.footer-legal-links span {
    opacity: 0.3;
}

/* ===================================
   Modal
   =================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s var(--transition);
    backdrop-filter: blur(4px);
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    max-width: 700px;
    max-height: 85vh;
    width: 100%;
    position: relative;
    transform: translateY(20px);
    transition: transform 0.4s var(--transition);
}

.modal.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 10;
}

.modal-close::before,
.modal-close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: var(--text-secondary);
    transition: background 0.3s;
}

.modal-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.modal-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.modal-close:hover::before,
.modal-close:hover::after {
    background: var(--accent);
}

.modal-body {
    padding: 3rem;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-body h2 {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.modal-body h3 {
    font-size: 1rem;
    color: var(--accent);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.modal-body p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.8;
    font-size: 0.95rem;
}

.modal-legal {
    max-width: 700px;
    max-height: 80vh;
    overflow-y: auto;
}

/* ===================================
   Responsive
   =================================== */
@media (max-width: 992px) {
    .features-grid,
    .features-grid-2,
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .product-feature {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .sp-offerings,
    .sp-product-features {
        grid-template-columns: 1fr;
    }

    .sp-client-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .product-feature.reverse {
        direction: ltr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

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

@media (max-width: 768px) {
    .main-nav {
        padding: 0.75rem 1.5rem;
    }

    .nav-center,
    .nav-contact-btn {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .page-content {
        padding: 3rem 1.5rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-legal {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

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

@media (max-width: 480px) {
    .main-nav {
        padding: 0.75rem 1rem;
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

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

    .page-header {
        padding: 3rem 1.5rem 2rem;
    }

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

    .contact-form-wrap {
        padding: 1.5rem;
    }

    .modal-body {
        padding: 2rem 1.5rem;
    }

    .product-cta-section {
        padding: 2.5rem 1.5rem;
    }
}
