/* LAN Assistans - Shared Styles */
@font-face {
    font-family: 'Trim';
    src: url('../trim/TrimWebLight/Trim-Light.woff2') format('woff2'),
         url('../trim/TrimWebLight/Trim-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Trim';
    src: url('../trim/TrimWebRegular/Trim-Regular.woff2') format('woff2'),
         url('../trim/TrimWebRegular/Trim-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Trim';
    src: url('../trim/TrimWebBold/Trim-Bold.woff2') format('woff2'),
         url('../trim/TrimWebBold/Trim-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #000000;
    --surface: #111111;
    --surface-hover: #1A1A1A;
    --orange: #ec880d;
    --orange-light: #ff9d2e;
    --white: #ffffff;
    --muted: #888888;
    --font-heading: 'Trim', sans-serif;
    --font-body: 'Source Sans 3', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

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

/* Header - Shared across all pages */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(236, 136, 13, 0.4);
    padding: 0 2rem;
}

.header-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--white);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

nav {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

nav a {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--muted);
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: all 0.2s;
}

nav a:hover {
    color: var(--orange);
    background: rgba(236, 136, 13, 0.1);
}

nav a.active {
    color: var(--orange);
}

nav a[aria-current="page"],
nav a.is-active {
    color: var(--orange);
    background: rgba(236, 136, 13, 0.1);
}

.header-cta {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.phone-btn {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--orange);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid var(--orange);
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.phone-btn:hover {
    background: var(--orange);
    color: var(--bg);
}

.swedish-flag {
    width: 20px;
    height: auto;
    border-radius: 2px;
    opacity: 0.85;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text);
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-btn svg {
    width: 28px;
    height: 28px;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid rgba(236, 136, 13, 0.2);
    padding: 1rem;
    z-index: 999;
}

.mobile-nav.open {
    display: block;
}

.mobile-nav a {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--muted);
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    transition: all 0.2s;
}

.mobile-nav a:hover {
    background: rgba(236, 136, 13, 0.1);
    color: var(--orange);
}

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

/* Page Content */
.page-content {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
    padding-top: 100px;
}

.page-content.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Hero */
.hero {
    padding: 4rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 4rem;
}

.hero-terminal {
    background: #0a0a0a;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    max-width: 900px;
}

.terminal-header {
    background: #151515;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.terminal-title {
    font-size: 0.7rem;
    color: #666;
    margin-left: 0.5rem;
    font-family: var(--font-mono);
}

.terminal-body {
    padding: 2rem;
}

.terminal-prompt {
    color: var(--orange);
    font-family: var(--font-mono);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.terminal-prompt::before {
    content: '# ';
    color: #666;
}

.terminal-output {
    color: var(--white);
    font-family: var(--font-mono);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
}

.terminal-cursor {
    display: inline-block;
    width: 12px;
    height: 1.2em;
    background: var(--orange);
    animation: blink 0.8s step-end infinite;
    vertical-align: middle;
    margin-left: 4px;
}

@keyframes blink {
    50% { opacity: 0; }
}

/* Section Headers */
.section-header {
    margin-bottom: 2rem;
}

.section-tag {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
}

/* Terminal Cards */
.terminal-card {
    background: #0a0a0a;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
    display: block;
}

.terminal-card:hover {
    border-color: var(--orange);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(236,136,13,0.1);
}

.card-header {
    background: #151515;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-title {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: #666;
    margin-left: 0.5rem;
}

.card-body {
    padding: 1.5rem;
}

.card-prompt {
    color: var(--orange);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    margin-bottom: 1rem;
}

.card-prompt::before {
    content: '> ';
    color: #666;
}

.card-body h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--white);
}

.card-output {
    color: var(--muted);
    font-size: 0.85rem;
    line-height: 1.6;
    padding-left: 1rem;
    border-left: 2px solid rgba(236,136,13,0.3);
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.card-tag {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--orange);
    background: rgba(236,136,13,0.1);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid rgba(236,136,13,0.2);
}

/* Feature Box */
.feature-box {
    background: #0a0a0a;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    margin-bottom: 2rem;
}

.feature-box h3 {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--orange);
}

.feature-box p {
    color: var(--muted);
    margin-bottom: 1.5rem;
}

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

.feature-list li {
    font-family: var(--font-mono);
    font-size: 0.85rem;
    color: var(--white);
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list li::before {
    content: '→';
    color: var(--orange);
}

/* CTA */
.cta-section {
    text-align: center;
    padding: 4rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.cta-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-section p {
    color: var(--muted);
    margin-bottom: 2rem;
}

.btn {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 1rem 2.5rem;
    border: 2px solid var(--orange);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    background: var(--orange);
    color: var(--bg);
}

.btn:hover {
    background: var(--orange-light);
    border-color: var(--orange-light);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236,136,13,0.4);
}

/* Boot Animation */
.boot-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.boot-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.boot-terminal {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    overflow: hidden;
}

.boot-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #0a0a0a;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.boot-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.boot-dot.red { background: #ff5f56; }
.boot-dot.yellow { background: #ffbd2e; }
.boot-dot.green { background: #27ca40; }

.boot-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: #666;
    margin-left: 0.5rem;
}

.boot-content {
    background: #0a0a0a;
    padding: 2rem;
    font-family: var(--font-mono);
    min-height: 220px;
}

.boot-line {
    color: var(--orange);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(10px);
    line-height: 1.4;
}

.boot-line.visible {
    opacity: 1;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.boot-line::before {
    content: '> ';
    color: #666;
}

.boot-line.output {
    color: var(--muted);
}

.boot-line.output::before {
    content: '';
}

.boot-line.output::after {
    content: '_';
    animation: blink 0.8s step-end infinite;
    color: var(--orange);
}

.boot-progress {
    margin-top: 1.5rem;
    opacity: 0;
    min-height: 24px;
}

.boot-progress.visible {
    opacity: 1;
}

.boot-progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.boot-progress-fill {
    height: 100%;
    background: var(--orange);
    width: 0%;
    transition: width 0.3s ease;
}

.boot-progress-text {
    font-size: 0.75rem;
    color: #666;
    text-align: right;
}

.boot-scan {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--orange), transparent);
    opacity: 0;
    animation: scanMove 2s ease-in-out infinite;
}

@keyframes scanMove {
    0% { top: 0; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.3; }
    100% { top: 100%; opacity: 0; }
}

/* Services Grid */
.services-section {
    margin-bottom: 4rem;
}

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

/* Responsive */
@media (max-width: 1024px) {
    nav { display: none; }
    .header-cta .phone-btn { display: none; }
    .header-cta .swedish-flag { display: none; }
    .mobile-menu-btn { display: block; }
    .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .services-grid { grid-template-columns: 1fr; }
    .hero-terminal { margin: 0 1rem; }
}