/* ============================================================
   MKH BUILD — Computer Integrated Systems Design
   Stylesheet
   ============================================================ */

:root {
    --color-bg: #0a0e14;
    --color-surface: #131820;
    --color-surface-elevated: #1a1f2b;
    --color-border: #252b37;
    --color-border-light: #303645;
    --color-text: #dfe3e8;
    --color-text-secondary: #8b92a1;
    --color-text-tertiary: #5e6578;
    --color-accent: #e8a840;
    --color-accent-deep: #c48a20;
    --color-accent-glow: rgba(232, 168, 64, 0.18);
    --color-teal: #2dd4bf;
    --color-teal-deep: #0d9488;
    --color-teal-glow: rgba(45, 212, 191, 0.15);
    --color-error: #ef4444;
    --color-success: #22c55e;
    --header-height: 72px;
    --max-width: 1280px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

/* ----------------------------------------------------------
   Header
   ---------------------------------------------------------- */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--header-height);
    background: rgba(10, 14, 20, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-text);
    font-size: 18px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.logo-icon {
    font-size: 22px;
    color: var(--color-accent);
}

.logo-text strong {
    color: var(--color-accent);
    font-weight: 800;
}

.main-nav {
    display: flex;
    gap: 32px;
}

.main-nav a {
    text-decoration: none;
    color: var(--color-text-secondary);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color var(--transition);
    position: relative;
}

.main-nav a:hover {
    color: var(--color-text);
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-accent);
    transition: width var(--transition);
}

.main-nav a:hover::after {
    width: 100%;
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-height) + 80px) 32px 80px;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 600px at 30% 50%, rgba(232, 168, 64, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 600px 500px at 80% 30%, rgba(45, 212, 191, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 500px 400px at 60% 80%, rgba(232, 168, 64, 0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 640px;
    flex: 1;
}

.hero-badge {
    display: inline-block;
    padding: 8px 18px;
    background: var(--color-accent-glow);
    border: 1px solid rgba(232, 168, 64, 0.25);
    border-radius: 100px;
    color: var(--color-accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero-title {
    font-size: clamp(40px, 6vw, 68px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.02em;
    color: #f0f2f5;
    margin-bottom: 24px;
}

.hero-accent {
    background: linear-gradient(135deg, var(--color-accent) 0%, #f5c86e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-accent) 0%, #d49420 100%);
    color: #0a0e14;
    box-shadow: 0 4px 20px rgba(232, 168, 64, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(232, 168, 64, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-border-light);
}

.btn-outline:hover {
    border-color: var(--color-text-secondary);
    background: rgba(255, 255, 255, 0.03);
}

.btn-full {
    width: 100%;
}

.hero-visual {
    position: relative;
    flex: 1;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(48, 54, 69, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(48, 54, 69, 0.15) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(ellipse 70% 70% at center, black 40%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 70% 70% at center, black 40%, transparent 70%);
}

.hero-geo {
    position: absolute;
    border-radius: var(--radius-lg);
}

.geo-1 {
    width: 280px;
    height: 280px;
    top: 10%;
    right: 15%;
    background: linear-gradient(135deg, var(--color-accent-glow), transparent);
    border: 1px solid rgba(232, 168, 64, 0.12);
    transform: rotate(8deg);
}

.geo-2 {
    width: 200px;
    height: 200px;
    bottom: 15%;
    right: 30%;
    background: linear-gradient(225deg, var(--color-teal-glow), transparent);
    border: 1px solid rgba(45, 212, 191, 0.12);
    transform: rotate(-5deg);
}

.geo-3 {
    width: 160px;
    height: 160px;
    top: 40%;
    right: 5%;
    border: 2px solid var(--color-accent);
    opacity: 0.15;
    transform: rotate(15deg);
}

.geo-4 {
    width: 120px;
    height: 120px;
    top: 20%;
    right: 50%;
    border: 2px solid var(--color-teal);
    opacity: 0.12;
    transform: rotate(45deg);
}

/* ----------------------------------------------------------
   Stats Bar
   ---------------------------------------------------------- */

.stats-bar {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: var(--color-surface);
}

.stats-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 48px 32px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    line-height: 1;
    color: var(--color-accent);
    letter-spacing: -0.02em;
    font-family: 'Roboto Mono', monospace;
}

.stat-unit {
    display: none;
}

.stat-item:not(:last-child) .stat-unit {
    display: inline;
    font-size: 48px;
    font-weight: 900;
    color: var(--color-accent);
    font-family: 'Roboto Mono', monospace;
}

.stat-item:not(:last-child) .stat-number::after {
    content: '+';
}

.stat-label {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

/* ----------------------------------------------------------
   Section Headers
   ---------------------------------------------------------- */

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

.section-tag {
    display: inline-block;
    padding: 6px 16px;
    background: var(--color-teal-glow);
    border: 1px solid rgba(45, 212, 191, 0.2);
    border-radius: 100px;
    color: var(--color-teal);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(28px, 4vw, 46px);
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #f0f2f5;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ----------------------------------------------------------
   Services
   ---------------------------------------------------------- */

.services {
    padding: 120px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
}

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

.service-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    border-color: var(--color-border-light);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.service-icon {
    color: var(--color-accent);
    margin-bottom: 24px;
}

.service-title {
    font-size: 18px;
    font-weight: 700;
    color: #f0f2f5;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.service-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 20px;
}

.service-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    font-size: 13px;
    color: var(--color-text-secondary);
    padding-left: 20px;
    position: relative;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--color-accent);
    opacity: 0.5;
}

/* ----------------------------------------------------------
   About
   ---------------------------------------------------------- */

.about {
    padding: 120px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.about-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-frame {
    position: relative;
    width: 400px;
    height: 400px;
}

.about-shape {
    position: absolute;
    border-radius: var(--radius-lg);
}

.shape-1 {
    width: 280px;
    height: 280px;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, var(--color-accent-glow), transparent 60%);
    border: 1px solid rgba(232, 168, 64, 0.15);
}

.shape-2 {
    width: 220px;
    height: 220px;
    bottom: 0;
    right: 0;
    background: linear-gradient(225deg, var(--color-teal-glow), transparent 60%);
    border: 1px solid rgba(45, 212, 191, 0.15);
}

.shape-3 {
    width: 160px;
    height: 160px;
    top: 60px;
    right: 40px;
    border: 2px solid var(--color-accent);
    opacity: 0.12;
}

.shape-4 {
    width: 100px;
    height: 100px;
    bottom: 60px;
    left: 40px;
    border: 2px solid var(--color-teal);
    opacity: 0.1;
}

.about-center-block {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    background: var(--color-surface-elevated);
    border: 2px solid var(--color-accent);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-established {
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.08em;
}

.about-content {
    max-width: 520px;
}

.about-lead {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    line-height: 1.6;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.about-text {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.75;
    margin-bottom: 36px;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.value-item strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-teal);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.value-item p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ----------------------------------------------------------
   Process
   ---------------------------------------------------------- */

.process {
    padding: 120px 32px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.process-grid {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.process-step {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--color-accent);
    border-radius: 4px 0 0 4px;
}

.step-number {
    display: block;
    font-family: 'Roboto Mono', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-accent);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}

.step-title {
    font-size: 17px;
    font-weight: 700;
    color: #f0f2f5;
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.step-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.65;
}

/* ----------------------------------------------------------
   Contact
   ---------------------------------------------------------- */

.contact {
    padding: 120px 32px;
    max-width: var(--max-width);
    margin: 0 auto;
}

.contact-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: flex-start;
}

.contact-info {
    max-width: 460px;
}

.contact-desc {
    font-size: 16px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 40px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-tertiary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.detail-value {
    font-size: 16px;
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
    line-height: 1.6;
}

a.detail-value:hover {
    color: var(--color-accent);
}

/* ----------------------------------------------------------
   Contact Form
   ---------------------------------------------------------- */

.contact-form {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-field label {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-secondary);
    letter-spacing: 0.02em;
}

.form-field input,
.form-field select,
.form-field textarea {
    background: var(--color-surface-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    font-family: inherit;
    font-size: 15px;
    color: var(--color-text);
    transition: border-color var(--transition), box-shadow var(--transition);
    outline: none;
    width: 100%;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: var(--color-text-tertiary);
}

.form-field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%238b92a1' d='M4 6l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 44px;
    cursor: pointer;
}

.form-field select option {
    background: var(--color-surface-elevated);
    color: var(--color-text);
}

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

.form-note {
    margin-top: 16px;
    font-size: 13px;
    color: var(--color-text-tertiary);
    text-align: center;
}

/* ----------------------------------------------------------
   Footer
   ---------------------------------------------------------- */

.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 64px 32px 48px;
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 64px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-top: 12px;
}

.footer-location {
    font-size: 13px;
    color: var(--color-text-tertiary);
    margin-top: 4px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-text-tertiary);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--color-text-secondary);
    text-decoration: none;
    padding: 6px 0;
    transition: color var(--transition);
}

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

.footer-bottom {
    border-top: 1px solid var(--color-border);
    padding: 24px 32px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: var(--color-text-tertiary);
}

/* ----------------------------------------------------------
   Responsive
   ---------------------------------------------------------- */

@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-visual {
        order: -1;
    }
    .about-frame {
        width: 300px;
        height: 300px;
    }
    .hero-visual {
        display: none;
    }
    .stats-inner {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: calc(var(--header-height) + 40px) 20px 60px;
    }
    .services,
    .about,
    .process,
    .contact {
        padding: 80px 20px;
    }
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .process-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .main-nav {
        display: none;
    }
    .hero-cta {
        flex-direction: column;
    }
    .btn {
        width: 100%;
        text-align: center;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .footer-links {
        grid-template-columns: 1fr 1fr;
    }
    .about-frame {
        width: 250px;
        height: 250px;
    }
    .shape-1 {
        width: 180px;
        height: 180px;
    }
    .shape-2 {
        width: 150px;
        height: 150px;
    }
    .shape-3 {
        width: 100px;
        height: 100px;
    }
    .shape-4 {
        width: 70px;
        height: 70px;
    }
    .about-center-block {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 480px) {
    .stats-inner {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        padding: 32px 16px;
    }
    .stat-number {
        font-size: 36px;
    }
    .footer-links {
        grid-template-columns: 1fr;
    }
}
