/* Himline Professional Theme - Based on IIS Agentic AI Design */

:root {
    --accent: #29ABE2;
    --accent-hover: #1E96C8;
    --accent-light: #e8f7fc;
    --accent-dark: #1B7BA8;
    --bg: #f6f8fb;
    --card: #ffffff;
    --muted: #6b7280;
    --text-dark: #0f172a;
    --nav-height: 64px;
    --gradient-primary: linear-gradient(135deg, #1B3F8F 0%, #2563EB 100%);
    --gradient-dark: linear-gradient(135deg, #0a1e3d 0%, #1B3F8F 100%);
    --gradient-accent: linear-gradient(135deg, #29ABE2 0%, #06B6D4 100%);
    --shadow-card: 0 6px 18px rgba(12,34,63,0.08);
    --shadow-hover: 0 16px 38px rgba(12,34,63,0.12);
    --border-radius: 12px;
}

html { scroll-behavior: smooth; }
html, body { height: 100%; }

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--accent-hover); }

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

/* Sticky Navigation */
nav.sticky-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    background: linear-gradient(180deg, rgba(27,63,143,0.98), rgba(37,99,235,0.95));
    border-bottom: 1px solid rgba(255,255,255,0.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.nav-inner {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-right: 24px;
    text-decoration: none;
}

.nav-brand img {
    height: 42px;
}

.nav-title {
    font-weight: 800;
    color: #ffffff;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.nav-subtitle {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    font-weight: 500;
}

.nav-inner a:not(.cta):not(.nav-brand) {
    padding: 8px 14px;
    border-radius: 8px;
    color: rgba(255,255,255,0.85);
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.nav-inner a:not(.cta):not(.nav-brand):hover,
.nav-inner a:not(.cta):not(.nav-brand).active {
    background: rgba(255,255,255,0.1);
    color: #fff;
}

.nav-spacer { flex: 1; }

.cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--accent);
    color: #fff !important;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(41,171,226,0.25);
    border: none;
    cursor: pointer;
}

.cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(41,171,226,0.35);
    color: #fff !important;
}

.cta-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,0.3);
    box-shadow: none;
}

.cta-outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

.cta-large {
    padding: 14px 28px;
    font-size: 16px;
}

.cta svg {
    width: 18px;
    height: 18px;
}

/* Mobile Menu */
.mobile-menu-btn {
    display: none;
    background: rgba(255,255,255,0.1);
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
}

/* Hero Section */
.hero {
    background: var(--gradient-primary);
    color: #fff;
    padding: 60px 20px 100px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 90%, rgba(41,171,226,0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255,255,255,0.1) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(37,99,235,0.3) 0%, transparent 60%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
}

.hero-inner {
    display: flex;
    gap: 40px;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.title-block { max-width: 680px; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    background: rgba(41,171,226,0.2);
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(41,171,226,0.3);
}

.eyebrow svg {
    width: 16px;
    height: 16px;
}

.hero h1 {
    margin: 0 0 16px;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.hero h1 .highlight {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero h2 {
    margin: 0 0 20px;
    font-size: clamp(16px, 2.5vw, 20px);
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
}

.hero .lead {
    margin: 0 0 28px;
    font-size: 15px;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-visual {
    min-width: 320px;
    flex: 1;
    max-width: 420px;
}

.hero-visual img {
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3));
}

/* Mission Box in Hero */
.mission-box {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(8px);
    padding: 28px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
}

.mission-node {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: rgba(255,255,255,0.08);
    border-radius: 12px;
    margin-bottom: 12px;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}

.mission-node:hover {
    background: rgba(255,255,255,0.12);
    transform: translateX(4px);
}

.mission-node:last-child {
    margin-bottom: 0;
}

.mission-icon {
    width: 44px;
    height: 44px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mission-node h4 {
    margin: 0 0 2px;
    font-size: 14px;
    font-weight: 700;
}

.mission-node p {
    margin: 0;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
}

/* Sections */
.section {
    padding: 60px 20px;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.section-header h2 {
    margin: 0 0 12px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.section-header .lead {
    color: var(--muted);
    font-size: 16px;
    margin: 0;
}

/* Tech/Service Cards Grid */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.tech-card {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: block;
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.tech-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.tech-card:hover::before {
    opacity: 1;
}

.tech-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e8f7fc, #f8fafc);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border: 1px solid rgba(41,171,226,0.1);
}

.tech-icon img {
    width: 36px;
    height: 36px;
}

.tech-icon svg {
    width: 28px;
    height: 28px;
    stroke: #1B3F8F;
}

.tech-card h3 {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.tech-card .tag {
    display: inline-block;
    padding: 4px 10px;
    background: var(--accent-light);
    color: var(--accent);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.tech-card p {
    margin: 0;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.tech-features {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(0,0,0,0.06);
    list-style: none;
    padding-left: 0;
}

.tech-features li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #374151;
    padding: 4px 0;
}

.tech-features li::before {
    content: '→';
    color: var(--accent);
    font-weight: 700;
    flex-shrink: 0;
}

/* Architecture / Dark Section */
.architecture {
    background: var(--gradient-dark);
    color: #fff;
    padding: 60px 20px;
}

.architecture h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.arch-diagram {
    max-width: 1000px;
    margin: 0 auto;
    background: rgba(255,255,255,0.04);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.08);
}

.arch-layers {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.arch-layer {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 20px 24px;
    border: 1px solid rgba(255,255,255,0.1);
}

.arch-layer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.arch-layer-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.arch-layer-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
}

.arch-components {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.arch-component {
    background: rgba(255,255,255,0.08);
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.2s ease;
}

.arch-component:hover {
    background: rgba(255,255,255,0.12);
    transform: scale(1.02);
}

.arch-connector {
    text-align: center;
    padding: 8px;
    color: rgba(255,255,255,0.5);
}

/* Use Cases / Services Grid */
.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.use-case-card {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 28px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(0,0,0,0.04);
    display: flex;
    gap: 18px;
    transition: all 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.use-case-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.use-case-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #e8f7fc, #f8fafc);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(41,171,226,0.1);
}

.use-case-icon img {
    width: 40px;
    height: 40px;
}

.use-case-icon svg {
    width: 28px;
    height: 28px;
    stroke: #1B3F8F;
}

.use-case-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-dark);
}

.use-case-card p {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--muted);
    line-height: 1.6;
}

.use-case-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.use-case-tag {
    padding: 4px 10px;
    background: #e8f7fc;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #1B3F8F;
}

/* Benefits Section */
.benefits {
    background: #fff;
    padding: 60px 20px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.benefit-card {
    text-align: center;
    padding: 28px 20px;
    background: var(--bg);
    border-radius: var(--border-radius);
    transition: all 0.25s ease;
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card);
}

.benefit-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--accent-light), #fff);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid rgba(41,171,226,0.12);
}

.benefit-icon svg {
    width: 28px;
    height: 28px;
    stroke: var(--accent);
}

.benefit-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
}

.benefit-card p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
    line-height: 1.6;
}

/* Stats Section */
.stats {
    background: var(--gradient-primary);
    padding: 40px 20px;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    color: #fff;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    opacity: 0.9;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: #fff;
    padding: 60px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(41,171,226,0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

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

.cta-section h2 {
    color: #fff;
    font-size: 32px;
    margin: 0 0 16px;
}

.cta-section p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin: 0 0 28px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Footer */
footer {
    padding: 24px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    background: #fff;
    border-top: 1px solid rgba(0,0,0,0.06);
}

footer a {
    color: var(--muted);
}

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

/* Page Hero for Inner Pages */
.page-hero {
    background: var(--gradient-primary);
    color: #fff;
    padding: 100px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 10% 90%, rgba(41,171,226,0.2) 0%, transparent 40%),
        radial-gradient(circle at 90% 10%, rgba(255,255,255,0.1) 0%, transparent 35%);
    pointer-events: none;
}

.page-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.page-hero .page-icon {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    border: 1px solid rgba(255,255,255,0.2);
}

.page-hero .page-icon img {
    width: 50px;
    height: 50px;
}

.page-hero .page-icon svg {
    width: 40px;
    height: 40px;
    stroke: #fff;
}

.page-hero h1 {
    margin: 0 0 16px;
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
}

.page-hero p {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    margin: 0;
    line-height: 1.7;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 24px;
    transition: color 0.2s;
}

.back-link:hover {
    color: #fff;
}

/* Page Content */
.page-content {
    padding: 60px 20px;
    max-width: 1000px;
    margin: 0 auto;
}

.content-section {
    margin-bottom: 48px;
}

.content-section h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.content-section p {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 16px;
}

/* Feature Grid */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.feature-box {
    background: var(--card);
    border-radius: var(--border-radius);
    padding: 24px;
    text-align: center;
    box-shadow: var(--shadow-card);
    transition: all 0.25s ease;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.feature-box-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e8f7fc, #f8fafc);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    border: 1px solid rgba(41,171,226,0.1);
}

.feature-box-icon svg {
    width: 28px;
    height: 28px;
    stroke: #1B3F8F;
}

.feature-box h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
}

.feature-box p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

/* Chat Demo */
.chat-demo {
    background: var(--card);
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    box-shadow: var(--shadow-card);
}

.chat-message {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}

.chat-message.user {
    flex-direction: row-reverse;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.chat-message.user .chat-avatar {
    background: var(--gradient-accent);
}

.chat-bubble {
    background: var(--bg);
    padding: 14px 18px;
    border-radius: 12px;
    max-width: 75%;
    font-size: 14px;
    line-height: 1.6;
}

.chat-message.user .chat-bubble {
    background: var(--gradient-primary);
    color: #fff;
}

/* Code Block */
.code-block {
    background: #1e293b;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    overflow-x: auto;
}

.code-block pre {
    color: #e2e8f0;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.6;
    margin: 0;
}

.code-block .comment { color: #64748b; }
.code-block .keyword { color: #f472b6; }
.code-block .string { color: #34d399; }
.code-block .function { color: #60a5fa; }

/* Benefit List */
.benefit-list {
    list-style: none;
    padding: 0;
    margin: 20px 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.benefit-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--card);
    border-radius: 10px;
    font-size: 14px;
    box-shadow: var(--shadow-card);
}

.benefit-list li::before {
    content: '✓';
    width: 24px;
    height: 24px;
    background: var(--gradient-accent);
    color: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .tech-grid,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-inner a:not(.cta):not(.nav-brand):not(.mobile-menu-btn) {
        display: none;
    }
    
    .nav-inner.active a:not(.cta):not(.nav-brand) {
        display: block;
    }
    
    .hero { padding: 40px 20px 60px; }
    .hero-inner { gap: 32px; }
    .hero-visual { 
        min-width: 100%;
        max-width: 100%;
    }
    
    .section { padding: 40px 20px; }
    .section-header h2 { font-size: 26px; }
    
    .tech-grid,
    .use-cases-grid,
    .feature-grid,
    .benefit-list {
        grid-template-columns: 1fr;
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 24px;
    }
    
    .page-hero {
        padding: 80px 20px 40px;
    }
}
