/* ---------------------------------------------------------
   AI Rendszergazda
   Alapstílusok és komponensek
   --------------------------------------------------------- */

:root {
    color-scheme: dark;
    --color-bg: #0b1220;
    --color-bg-soft: #101b2d;
    --color-surface: #142238;
    --color-text: #f4f7fb;
    --color-muted: #a3afc1;
    --color-dark: #101827;
    --color-dark-muted: #657184;
    --color-accent: #7ce6c1;
    --color-accent-strong: #48cfa5;
    --color-line: rgba(255, 255, 255, 0.11);
    --font-body: "DM Sans", sans-serif;
    --font-heading: "Manrope", sans-serif;
    --container-width: 1160px;
    --radius-card: 18px;
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body,
button,
input,
textarea {
    font-family: var(--font-body);
}

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

button,
input,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: min(var(--container-width), calc(100% - 48px));
    margin-inline: auto;
}

.section {
    position: relative;
    padding: 112px 0;
}

.section-light {
    background: #f4f7f8;
    color: var(--color-dark);
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    background: rgba(11, 18, 32, 0.88);
    border-bottom: 1px solid var(--color-line);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: grid;
    width: 32px;
    height: 32px;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    transform: rotate(-8deg);
}

.brand-mark span {
    border-radius: 4px;
    background: var(--color-accent);
}

.brand-mark span:nth-child(2),
.brand-mark span:nth-child(3) {
    opacity: 0.55;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.7px;
}

.brand-name span {
    color: var(--color-accent);
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 34px;
    color: #c0cad7;
    font-size: 13px;
    font-weight: 600;
}

.main-navigation > a:not(.nav-cta):hover,
.text-link:hover,
.back-to-top:hover {
    color: var(--color-accent);
}

.nav-cta {
    padding: 11px 17px;
    border: 1px solid rgba(124, 230, 193, 0.48);
    border-radius: 8px;
    color: var(--color-accent);
    transition: background var(--transition), color var(--transition);
}

.nav-cta:hover {
    background: var(--color-accent);
    color: var(--color-bg);
}

.nav-cta span {
    margin-left: 8px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 11px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: white;
}

/* Hero */

.hero {
    min-height: 680px;
    overflow: hidden;
    padding-top: 105px;
    padding-bottom: 42px;
    background:
        radial-gradient(ellipse at 72% 42%, rgba(42, 108, 112, 0.16), transparent 38%),
        linear-gradient(135deg, #0b1220 0%, #0d1929 58%, #0b1726 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 56px;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.eyebrow,
.section-kicker {
    color: var(--color-accent-strong);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
    padding: 8px 12px;
    border: 1px solid rgba(124, 230, 193, 0.2);
    border-radius: 50px;
    background: rgba(124, 230, 193, 0.05);
    color: #b8f4df;
    letter-spacing: 0.8px;
    text-transform: none;
}

.eyebrow-dot,
.status-dot,
.frame-status span {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--color-accent);
    box-shadow: 0 0 0 4px rgba(124, 230, 193, 0.12);
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1,
h2,
h3 {
    font-family: var(--font-heading);
}

.hero h1 {
    margin-bottom: 24px;
    font-size: clamp(48px, 6vw, 76px);
    font-weight: 800;
    letter-spacing: -4.5px;
    line-height: 1.07;
}

.hero h1 span,
.section-heading h2 span,
.intro h2 span,
.approach h2 span,
.contact h2 span {
    color: var(--color-accent);
}

.hero-lead {
    max-width: 560px;
    margin-bottom: 32px;
    color: #b0bdcc;
    font-size: 16px;
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
}

.button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 21px;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: transform var(--transition), background var(--transition);
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--color-accent);
    color: #0b1a20;
}

.button-primary:hover {
    background: #9af0d2;
}

.text-link {
    color: #d5dce5;
    font-size: 12px;
    font-weight: 600;
    transition: color var(--transition);
}

.text-link span {
    margin-left: 7px;
    color: var(--color-accent);
}

.hero-proof {
    display: flex;
    max-width: 440px;
    align-items: center;
    gap: 13px;
    margin-top: 56px;
    color: #aab7c7;
    font-size: 12px;
}

.hero-proof p {
    margin: 0;
}

.hero-proof strong {
    color: #f2f6fa;
}

.proof-icon {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(124, 230, 193, 0.35);
    border-radius: 50%;
    color: var(--color-accent);
}

.hero-visual {
    position: relative;
    display: grid;
    min-height: 470px;
    place-items: center;
}

.visual-orbit {
    position: absolute;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(124, 230, 193, 0.15);
    border-radius: 50%;
}

.orbit-two {
    width: 290px;
    height: 290px;
    border-style: dashed;
    border-color: rgba(124, 230, 193, 0.22);
}

.visual-core {
    position: relative;
    z-index: 1;
    display: flex;
    width: 190px;
    height: 190px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(124, 230, 193, 0.4);
    border-radius: 50%;
    background: radial-gradient(circle, #1c3d49, #102438 72%);
    box-shadow: 0 0 80px rgba(72, 207, 165, 0.17), inset 0 0 30px rgba(124, 230, 193, 0.08);
}

.visual-core strong {
    margin-top: 10px;
    font-family: var(--font-heading);
    font-size: 36px;
    letter-spacing: -2px;
}

.visual-core small {
    margin-top: 3px;
    color: #9fb9ba;
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.core-symbol {
    display: flex;
    align-items: center;
    gap: 4px;
}

.core-symbol span {
    width: 6px;
    height: 19px;
    border-radius: 5px;
    background: var(--color-accent);
}

.core-symbol span:nth-child(2) {
    height: 27px;
    opacity: 0.65;
}

.float-card {
    position: absolute;
    z-index: 2;
    display: flex;
    min-width: 190px;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 11px;
    background: rgba(19, 35, 54, 0.92);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(12px);
}

.float-card div:last-child {
    display: flex;
    flex-direction: column;
}

.float-card small {
    color: #8799aa;
    font-size: 9px;
}

.float-card strong {
    color: #e7edf2;
    font-size: 11px;
}

.card-monitor {
    top: 56px;
    right: 2px;
}

.card-security {
    bottom: 108px;
    left: -12px;
}

.card-cloud {
    right: 0;
    bottom: 30px;
}

.mini-icon {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 8px;
    background: rgba(124, 230, 193, 0.12);
    color: var(--color-accent);
    font-size: 19px;
}

.visual-caption {
    position: absolute;
    right: 0;
    bottom: -5px;
    color: #718295;
    font-size: 10px;
    line-height: 1.6;
    text-align: right;
}

.hero-bottom {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 50px;
    color: #68798d;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

.hero-line {
    width: 48px;
    height: 1px;
    background: rgba(124, 230, 193, 0.35);
}

/* Intro */

.intro {
    padding-top: 92px;
    padding-bottom: 92px;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    align-items: center;
    gap: 100px;
}

.section-kicker {
    margin-bottom: 18px;
}

.intro h2,
.section-heading h2,
.approach h2,
.contact h2 {
    margin-bottom: 0;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -2.5px;
    line-height: 1.2;
}

.intro h2 span {
    color: #159d7a;
}

.intro-copy {
    color: #657184;
    font-size: 14px;
    line-height: 1.9;
}

.intro-copy p:last-child {
    margin-bottom: 0;
}

/* Services */

.services {
    background: #0e1929;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 48px;
}

.section-heading h2 {
    color: var(--color-text);
}

.section-heading h2 span {
    color: var(--color-accent);
}

.section-description {
    max-width: 340px;
    margin-bottom: 5px;
    color: #9ba9b9;
    font-size: 13px;
    line-height: 1.85;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.service-card {
    display: flex;
    min-height: 330px;
    flex-direction: column;
    padding: 27px 23px 23px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: var(--radius-card);
    background: #122035;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.service-card:hover {
    transform: translateY(-5px);
    border-color: rgba(124, 230, 193, 0.42);
    background: #162840;
}

.service-card-featured {
    border-color: rgba(124, 230, 193, 0.28);
    background: linear-gradient(155deg, #173344, #122035 72%);
}

.service-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 27px;
    place-items: center;
    border: 1px solid rgba(124, 230, 193, 0.28);
    border-radius: 10px;
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
}

.service-label {
    margin-bottom: 10px;
    color: var(--color-accent);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.3px;
}

.service-card h3 {
    margin-bottom: 12px;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.4;
}

.service-card > p:not(.service-label) {
    margin-bottom: 24px;
    color: #9cabbc;
    font-size: 12px;
    line-height: 1.8;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    color: #d9e4eb;
    font-size: 11px;
    font-weight: 700;
}

.card-link span {
    color: var(--color-accent);
}

/* Approach */

.approach {
    overflow: hidden;
    background: #101d2e;
}

.approach-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
    gap: 110px;
}

.approach-visual {
    position: relative;
    display: grid;
    min-height: 390px;
    place-items: center;
}

.approach-frame {
    width: min(100%, 390px);
    min-height: 280px;
    overflow: hidden;
    border: 1px solid rgba(124, 230, 193, 0.25);
    border-radius: 16px;
    background: linear-gradient(145deg, #1b3546, #102033);
    box-shadow: 25px 25px 0 rgba(124, 230, 193, 0.045);
    transform: rotate(-4deg);
}

.frame-top {
    display: flex;
    height: 43px;
    align-items: center;
    gap: 6px;
    padding: 0 17px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.frame-top span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #5f7888;
}

.frame-top span:first-child {
    background: #e8a47d;
}

.frame-top span:nth-child(2) {
    background: #d9c27d;
}

.frame-top span:nth-child(3) {
    background: #7ce6c1;
}

.code-lines {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 36px 35px;
}

.line {
    display: block;
    height: 7px;
    border-radius: 10px;
    background: rgba(124, 230, 193, 0.3);
}

.line-short { width: 28%; }
.line-long { width: 83%; }
.line-medium { width: 55%; }
.line-longer { width: 94%; }

.frame-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 35px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: #b9c8d1;
    font-size: 10px;
}

.approach-note {
    position: absolute;
    right: -10px;
    bottom: 23px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 17px 20px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: #172a3e;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.approach-note strong {
    color: var(--color-accent);
    font-family: var(--font-heading);
    font-size: 12px;
}

.approach-note span {
    color: #c2ced8;
    font-size: 10px;
    line-height: 1.5;
}

.approach-content > p:not(.section-kicker) {
    max-width: 520px;
    margin: 24px 0;
    color: #a4b1c0;
    font-size: 13px;
    line-height: 1.9;
}

.check-list {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    color: #d4dde5;
    font-size: 12px;
    list-style: none;
}

.check-list li {
    display: flex;
    align-items: center;
    gap: 11px;
}

.check-list span {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    background: rgba(124, 230, 193, 0.12);
    color: var(--color-accent);
    font-size: 11px;
}

/* Process */

.process {
    padding-top: 105px;
    padding-bottom: 110px;
}

.process .section-kicker {
    color: #159d7a;
}

.process-heading h2 {
    color: var(--color-dark);
}

.process-heading h2 span {
    color: #159d7a;
}

.process-heading .section-description {
    color: #697689;
}

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

.process-item {
    position: relative;
    padding-top: 25px;
    border-top: 1px solid #d5dfe1;
}

.process-number {
    display: inline-block;
    margin-bottom: 24px;
    color: #159d7a;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 800;
}

.process-item h3 {
    margin-bottom: 10px;
    color: #172235;
    font-size: 17px;
    letter-spacing: -0.4px;
}

.process-item p {
    max-width: 230px;
    margin-bottom: 0;
    color: #687588;
    font-size: 12px;
    line-height: 1.85;
}

/* Contact */

.contact {
    padding-top: 100px;
    padding-bottom: 100px;
    background:
        radial-gradient(ellipse at 15% 80%, rgba(72, 207, 165, 0.12), transparent 40%),
        #0b1220;
}

.contact-panel {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 90px;
    padding: 62px;
    border: 1px solid rgba(124, 230, 193, 0.2);
    border-radius: 22px;
    background: linear-gradient(135deg, #14283a, #101d2e);
}

.contact-copy h2 {
    margin-bottom: 24px;
}

.contact-copy > p:last-child {
    max-width: 390px;
    color: #a8b6c5;
    font-size: 13px;
    line-height: 1.9;
}

.contact-form {
    display: grid;
    gap: 17px;
}

.form-row {
    display: grid;
    gap: 7px;
}

.form-row label {
    color: #d8e1e9;
    font-size: 11px;
    font-weight: 600;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    outline: none;
    background: rgba(6, 14, 25, 0.38);
    color: white;
    font-size: 12px;
    resize: vertical;
    transition: border-color var(--transition), background var(--transition);
}

.form-row input::placeholder,
.form-row textarea::placeholder {
    color: #718195;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--color-accent);
    background: rgba(6, 14, 25, 0.58);
}

.form-submit {
    justify-self: start;
    margin-top: 3px;
}

.form-note {
    margin: -7px 0 0;
    color: #8192a4;
    font-size: 10px;
}

/* Footer */

.site-footer {
    padding: 35px 0 22px;
    background: #080e18;
}

.footer-main,
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-main {
    padding-bottom: 28px;
}

.footer-main > p {
    margin: 0;
    color: #8392a3;
    font-size: 11px;
}

.back-to-top {
    color: #b7c3cf;
    font-size: 11px;
    font-weight: 600;
    transition: color var(--transition);
}

.footer-bottom {
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: #667588;
    font-size: 9px;
}

.domain-list {
    text-align: right;
}

/* Responsive */

@media (max-width: 1050px) {
    .hero-grid {
        gap: 25px;
    }

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

    .service-card {
        min-height: 295px;
    }

    .approach-grid {
        gap: 55px;
    }

    .contact-panel {
        gap: 50px;
        padding: 45px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 36px, var(--container-width));
    }

    .section {
        padding: 78px 0;
    }

    .header-inner {
        min-height: 72px;
    }

    .menu-toggle {
        display: block;
    }

    .main-navigation {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        align-items: stretch;
        gap: 0;
        padding: 10px 18px 18px;
        border-bottom: 1px solid var(--color-line);
        background: #0b1220;
    }

    .main-navigation.is-open {
        display: flex;
        flex-direction: column;
    }

    .main-navigation > a {
        padding: 13px 5px;
    }

    .main-navigation .nav-cta {
        margin-top: 8px;
        padding: 11px 14px;
        text-align: center;
    }

    .hero {
        padding-top: 76px;
    }

    .hero-grid,
    .intro-grid,
    .approach-grid,
    .contact-panel {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 35px;
    }

    .hero h1 {
        font-size: clamp(47px, 12vw, 68px);
        letter-spacing: -3px;
    }

    .hero-lead {
        font-size: 14px;
    }

    .hero-proof {
        margin-top: 35px;
    }

    .hero-visual {
        min-height: 390px;
        margin: 0 -8px;
    }

    .visual-orbit {
        width: 320px;
        height: 320px;
    }

    .orbit-two {
        width: 245px;
        height: 245px;
    }

    .visual-core {
        width: 160px;
        height: 160px;
    }

    .card-monitor {
        top: 22px;
        right: 0;
    }

    .card-security {
        bottom: 80px;
        left: 0;
    }

    .card-cloud {
        right: 0;
        bottom: 8px;
    }

    .visual-caption {
        display: none;
    }

    .hero-bottom {
        margin-top: 25px;
        font-size: 8px;
    }

    .intro-grid {
        gap: 25px;
    }

    .intro h2,
    .section-heading h2,
    .approach h2,
    .contact h2 {
        font-size: 36px;
        letter-spacing: -1.8px;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        margin-bottom: 35px;
    }

    .section-description {
        max-width: 500px;
    }

    .service-grid {
        gap: 12px;
    }

    .service-card {
        min-height: 320px;
        padding: 22px 18px;
    }

    .approach-grid {
        gap: 45px;
    }

    .approach-visual {
        min-height: 320px;
    }

    .approach-frame {
        width: 85%;
    }

    .approach-note {
        right: 0;
        bottom: 0;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 35px 22px;
    }

    .contact-panel {
        gap: 35px;
        padding: 32px 24px;
    }

    .footer-main,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

    .footer-main {
        gap: 15px;
    }

    .footer-bottom {
        gap: 10px;
    }

    .domain-list {
        text-align: left;
        line-height: 1.8;
    }
}

@media (max-width: 430px) {
    .container {
        width: calc(100% - 30px);
    }

    .hero-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .button {
        width: 100%;
    }

    .hero-visual {
        min-height: 350px;
    }

    .float-card {
        min-width: 165px;
        padding: 10px;
    }

    .float-card strong {
        font-size: 10px;
    }

    .card-security {
        left: -4px;
    }

    .service-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 270px;
    }

    .process-item {
        padding-top: 18px;
    }

    .process-number {
        margin-bottom: 14px;
    }

    .contact-panel {
        padding: 28px 19px;
    }

    .form-submit {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
