/* =========================================
   NovaTech — Custom Software Landing Page
   ========================================= */

:root {
    --brand-50:  #eef2ff;
    --brand-100: #e0e7ff;
    --brand-200: #c7d2fe;
    --brand-500: #4f6df5;
    --brand-600: #3753ea;
    --brand-700: #2a40c4;
    --brand-900: #1a1f5a;

    --ink-900: #0f1839;
    --ink-700: #1e285c;
    --ink-500: #4b557e;
    --ink-400: #6b76a3;
    --ink-300: #9ba4c9;

    --bg-page: #f5f7ff;
    --bg-card: #ffffff;
    --bg-soft: #eff2ff;

    --border: #e3e8f7;
    --shadow-sm: 0 4px 14px rgba(31, 50, 130, .06);
    --shadow-md: 0 10px 30px rgba(31, 50, 130, .08);
    --shadow-lg: 0 25px 60px rgba(31, 50, 130, .12);

    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-pill: 999px;

    --container: 1200px;

    --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
                 "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;

    --header-h: 76px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-base);
    color: var(--ink-700);
    background: var(--bg-page);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; transition: color .2s ease; }

button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

ul { list-style: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============== HEADER ============== */

.site-header {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--header-h);
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    z-index: 50;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}

.site-header.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 120px;
    width: auto;
    display: block;
    transition: transform .25s ease;
}

.logo:hover .logo-img { transform: scale(1.04); }

.logo-img-footer {
    height: 72px;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .35));
}

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

.main-nav a {
    color: var(--ink-500);
    font-size: 15px;
    font-weight: 500;
    position: relative;
    padding: 6px 0;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--brand-600);
    transition: width .25s ease, left .25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--brand-600);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 100%;
    left: 0;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    background: var(--bg-soft);
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
}

.lang-btn {
    color: var(--ink-400);
    font-size: 13px;
    font-weight: 600;
    padding: 2px 4px;
    border-radius: 6px;
    transition: color .2s ease;
}

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

.lang-btn:hover { color: var(--brand-700); }

.lang-sep { color: var(--ink-300); }

.menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    position: relative;
}

.menu-toggle span {
    display: block;
    position: absolute;
    left: 10px;
    width: 20px;
    height: 2px;
    background: var(--ink-700);
    border-radius: 1px;
    transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle span:nth-child(1) { top: 14px; }
.menu-toggle span:nth-child(2) { top: 19px; }
.menu-toggle span:nth-child(3) { top: 24px; }

.menu-toggle.is-open span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ============== HERO ============== */

.hero {
    position: relative;
    padding: calc(var(--header-h) + 60px) 0 90px;
    background: linear-gradient(180deg, #eef2ff 0%, #f5f7ff 100%);
    overflow: hidden;
}

.hero-bg-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: .55;
    pointer-events: none;
}

.shape-1 {
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(79, 109, 245, .35), transparent 70%);
    top: -120px;
    right: -120px;
}

.shape-2 {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(167, 185, 255, .35), transparent 70%);
    bottom: -100px;
    left: -80px;
}

.hero-inner {
    position: relative;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    align-items: center;
    gap: 60px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, .8);
    color: var(--brand-700);
    font-size: 13px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    border: 1px solid var(--brand-100);
    box-shadow: var(--shadow-sm);
    margin-bottom: 28px;
}

.hero-badge .dot {
    width: 8px; height: 8px;
    background: var(--brand-500);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(79, 109, 245, .2);
}

.hero-title {
    font-size: clamp(2rem, 4.6vw, 3.4rem);
    line-height: 1.2;
    color: var(--ink-900);
    font-weight: 800;
    letter-spacing: -.5px;
    margin-bottom: 24px;
}

.highlight {
    background: linear-gradient(90deg, var(--brand-500), var(--brand-700));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--ink-500);
    max-width: 540px;
    margin-bottom: 36px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-pill);
    transition: transform .2s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
    color: #fff;
    box-shadow: 0 12px 24px rgba(55, 83, 234, .32);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 32px rgba(55, 83, 234, .4);
}

.btn-ghost {
    background: #fff;
    color: var(--brand-700);
    border: 1.5px solid var(--brand-200);
}

.btn-ghost:hover {
    border-color: var(--brand-500);
    color: var(--brand-700);
    transform: translateY(-2px);
}

.btn-block { width: 100%; }

.hero-stats {
    display: flex;
    gap: 60px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--ink-900);
    line-height: 1.1;
}

.stat-label {
    font-size: 13px;
    color: var(--ink-400);
    margin-top: 6px;
}

/* hero visual */

.hero-visual { display: flex; justify-content: center; }

.visual-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 5;
}

.visual-glow {
    position: absolute;
    inset: 20px;
    background: radial-gradient(circle at 30% 20%, rgba(79, 109, 245, .35), transparent 60%);
    border-radius: 80px;
    filter: blur(30px);
}

.visual-screen {
    position: absolute;
    inset: 20px;
    background: #fff;
    border-radius: 36px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    animation: float 5s ease-in-out infinite;
}

.screen-bar {
    display: flex;
    gap: 6px;
    padding: 14px 16px;
    background: #f4f6ff;
    border-bottom: 1px solid var(--border);
}

.screen-bar span {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #d3daf2;
}

.screen-bar span:nth-child(1) { background: #ff7363; }
.screen-bar span:nth-child(2) { background: #ffc94a; }
.screen-bar span:nth-child(3) { background: #4dd380; }

.screen-content {
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.code-line {
    height: 12px;
    border-radius: 6px;
    background: linear-gradient(90deg, var(--brand-100), var(--brand-50));
}

.code-line.w-40 { width: 40%; }
.code-line.w-50 { width: 50%; }
.code-line.w-60 { width: 60%; }
.code-line.w-70 { width: 70%; }
.code-line.w-80 { width: 80%; background: linear-gradient(90deg, var(--brand-200), var(--brand-100)); }
.code-line.w-90 { width: 90%; background: linear-gradient(90deg, var(--brand-500), var(--brand-200)); }

.floating-tag {
    position: absolute;
    padding: 10px 18px;
    background: #fff;
    color: var(--brand-700);
    font-weight: 700;
    font-size: 14px;
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    animation: float 4s ease-in-out infinite;
}

.tag-1 { top: 10%;   left: -10px;  animation-delay: .2s; }
.tag-2 { top: 50%;   right: -16px; animation-delay: .8s; }
.tag-3 { bottom: 8%; left: 20px;   animation-delay: 1.4s; }

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

/* ============== SECTIONS COMMON ============== */

.section { padding: 100px 0; }

.section-head {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 60px;
}

.eyebrow {
    display: inline-block;
    color: var(--brand-600);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.section-title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--ink-900);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -.4px;
}

.section-title.left { text-align: left; }

.section-sub {
    margin-top: 14px;
    color: var(--ink-400);
    font-size: 16px;
}

/* ============== SERVICES ============== */

.services { background: #fff; }

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

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 30px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(79, 109, 245, .12), transparent 60%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-200);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-50), var(--brand-100));
    color: var(--brand-600);
    margin-bottom: 22px;
}

.service-icon svg { width: 28px; height: 28px; }

.service-card h3 {
    color: var(--ink-900);
    font-size: 18px;
    margin-bottom: 10px;
    font-weight: 700;
}

.service-card p {
    color: var(--ink-400);
    font-size: 14.5px;
    line-height: 1.65;
}

/* ============== ABOUT ============== */

.about { background: var(--bg-page); }

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

.about-img-wrap {
    position: relative;
    aspect-ratio: 1 / 1;
    max-width: 480px;
}

.img-block {
    position: absolute;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.img-block-1 {
    width: 70%;
    height: 70%;
    top: 0;
    left: 0;
    background:
        linear-gradient(135deg, rgba(15, 24, 57, .25), transparent 60%),
        linear-gradient(135deg, var(--brand-500), var(--brand-700));
}

.img-block-2 {
    width: 60%;
    height: 60%;
    bottom: 0;
    right: 0;
    background:
        repeating-linear-gradient(135deg, rgba(255, 255, 255, .12) 0 4px, transparent 4px 12px),
        linear-gradient(135deg, var(--brand-200), var(--brand-500));
    border: 6px solid var(--bg-page);
}

.img-badge {
    position: absolute;
    bottom: -20px;
    left: -20px;
    background: #fff;
    padding: 16px 22px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border);
}

.img-badge strong {
    color: var(--brand-600);
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.img-badge span {
    color: var(--ink-400);
    font-size: 13px;
    margin-top: 4px;
}

.about-content p {
    color: var(--ink-500);
    font-size: 16px;
    margin: 16px 0 0;
}

.about-list {
    margin-top: 28px;
    display: grid;
    gap: 14px;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink-700);
    font-weight: 500;
}

.about-list svg {
    width: 18px;
    height: 18px;
    color: #fff;
    background: var(--brand-600);
    border-radius: 50%;
    padding: 4px;
    flex-shrink: 0;
}

/* ============== WHY US ============== */

.why { background: #fff; }

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

.why-card {
    padding: 32px 26px;
    background: var(--bg-page);
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    background: #fff;
    border-color: var(--brand-200);
    box-shadow: var(--shadow-md);
}

.why-num {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-500);
    margin-bottom: 16px;
    letter-spacing: -.5px;
}

.why-card h3 {
    color: var(--ink-900);
    font-size: 17px;
    margin-bottom: 8px;
    font-weight: 700;
}

.why-card p {
    color: var(--ink-400);
    font-size: 14px;
    line-height: 1.65;
}

/* ============== CONTACT ============== */

.contact {
    background: linear-gradient(180deg, #f5f7ff 0%, #eef2ff 100%);
}

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

.contact-info p {
    color: var(--ink-500);
    margin-top: 14px;
    margin-bottom: 32px;
}

.contact-list {
    display: grid;
    gap: 20px;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 16px;
}

.ci-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #fff;
    color: var(--brand-600);
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-sm);
    flex-shrink: 0;
}

.ci-icon svg { width: 22px; height: 22px; }

.contact-list strong {
    display: block;
    color: var(--ink-900);
    font-size: 14px;
    margin-bottom: 2px;
}

.contact-list a,
.contact-list div span {
    color: var(--ink-500);
    font-size: 15px;
}

.contact-list a:hover { color: var(--brand-600); }

.contact-form {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
    display: grid;
    gap: 18px;
}

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

.contact-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-form label > span {
    font-size: 13px;
    color: var(--ink-500);
    font-weight: 600;
}

.contact-form input,
.contact-form textarea {
    font: inherit;
    color: var(--ink-900);
    padding: 12px 14px;
    background: #f8faff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    background: #fff;
    border-color: var(--brand-500);
    box-shadow: 0 0 0 4px rgba(79, 109, 245, .15);
}

.form-feedback {
    margin-top: 6px;
    padding: 10px 14px;
    background: rgba(77, 211, 128, .12);
    color: #14773d;
    border-radius: var(--radius-sm);
    font-size: 14px;
    text-align: center;
}

/* ============== FOOTER ============== */

.site-footer {
    background: var(--ink-900);
    color: #c8cde4;
    padding-top: 70px;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-brand .logo-text strong { color: #fff; }
.footer-brand .logo-text em     { color: #9ca6d6; }
.footer-brand p {
    margin-top: 16px;
    color: #9ca6d6;
    font-size: 14px;
    max-width: 320px;
}

.footer-col h4 {
    color: #fff;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.footer-col ul { display: grid; gap: 10px; }

.footer-col a {
    color: #9ca6d6;
    font-size: 14px;
}

.footer-col a:hover { color: #fff; }

.socials {
    display: flex;
    gap: 10px;
}

.socials a {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    display: grid;
    place-items: center;
    transition: background .25s ease, transform .25s ease;
}

.socials a svg { width: 16px; height: 16px; }

.socials a:hover {
    background: var(--brand-600);
    transform: translateY(-3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 22px;
    padding-bottom: 24px;
    color: #7f8ab6;
    font-size: 13px;
}

.footer-bottom a:hover { color: #fff; }

/* ============== REVEAL ANIMATION ============== */

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .7s ease, transform .7s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ============== RESPONSIVE ============== */

@media (max-width: 1024px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { order: -1; max-width: 360px; margin: 0 auto; }
    .service-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .about-inner { grid-template-columns: 1fr; gap: 50px; }
    .about-img-wrap { margin: 0 auto; }
    .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    :root { --header-h: 64px; }

    .menu-toggle { display: block; }

    .main-nav {
        position: fixed;
        inset: var(--header-h) 0 auto 0;
        background: #fff;
        border-bottom: 1px solid var(--border);
        padding: 18px 24px 24px;
        transform: translateY(-110%);
        transition: transform .3s ease;
        box-shadow: var(--shadow-md);
    }

    .main-nav.is-open { transform: translateY(0); }

    .main-nav ul {
        flex-direction: column;
        gap: 16px;
    }

    .hero { padding: calc(var(--header-h) + 40px) 0 60px; }
    .hero-stats { gap: 30px; flex-wrap: wrap; }
    .stat-value { font-size: 26px; }

    .section { padding: 70px 0; }
    .section-head { margin-bottom: 40px; }

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

    .contact-inner { grid-template-columns: 1fr; gap: 40px; }
    .contact-form { padding: 26px; }
    .form-row { grid-template-columns: 1fr; }

    .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
    .footer-brand { grid-column: 1 / -1; }

    .footer-bottom {
        flex-direction: column;
        gap: 8px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container { padding: 0 18px; }
    .hero-cta .btn { flex: 1 1 100%; }
    .footer-inner { grid-template-columns: 1fr; }
}
