/* ============================================================
   KimTechTool — responsive recreation of the SiteBuilder design
   Mobile-first, scales up to desktop.
   ============================================================ */

:root {
    --bg: #0a1a3a;
    --border: rgba(255, 255, 255, 0.12);
    --text: #ffffff;
    --muted: #9aa3b8;
    --accent: #2c6cff;
    --accent-hover: #1f5be0;

    --content-narrow: 760px;
    --content-wide: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--muted);
    font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }

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

.container-narrow { max-width: var(--content-narrow); }

/* Typography */
h1, h2, h3 {
    color: var(--text);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 24px;
}

h1 { font-size: clamp(2rem, 7vw, 3.25rem); text-align: center; }
h2 { font-size: clamp(1.75rem, 5.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 20px; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 28px 0;
}

/* ============================================================
   Header
   ============================================================ */
.site-header {
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 26, 58, 0.78);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding-bottom: 4px;
}

.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
}

.logo {
    color: var(--text);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }

.main-nav { display: flex; gap: 28px; flex-wrap: wrap; align-items: center; }
.main-nav a { color: var(--text); font-weight: 500; }

/* Language switcher */
.lang-switch {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}
.lang-btn {
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    border: 0;
    color: var(--muted);
    font: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 4px 9px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn:hover { color: var(--text); }
.lang-btn.active {
    background: var(--accent);
    color: #fff;
}
.lang-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 56px 0 32px; text-align: center; }

.hero .lead {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 56px;
}

.get-started {
    font-size: clamp(1.4rem, 3.5vw, 1.75rem);
    margin: 0;
}

/* ============================================================
   Media section (images + All-in-One text)
   ============================================================ */
.media-section { padding: 48px 0 56px; }

.media-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 0 auto 48px;
}

.media-item { margin: 0; }

.media-item img {
    width: 100%;
    border-radius: 6px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   Why EncodeX cards
   ============================================================ */
.why-section { padding: 56px 0 64px; text-align: center; }

.section-title { text-align: center; margin-bottom: 40px; }
.section-title.center { text-align: center; }

.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 48px;
}

.card {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 32px 26px;
    text-align: left;
    background: transparent;
}

.card-number {
    color: var(--accent);
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 24px;
}

.card h3 { margin-bottom: 16px; }
.card p { margin: 0; }

/* ============================================================
   Buttons
   ============================================================ */
.cta-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin-top: 32px;
}

.btn {
    display: block;
    width: 100%;
    max-width: 220px;
    margin: 0 auto;
    padding: 9px 18px;
    border-radius: 6px;
    text-align: center;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    text-decoration: none;
}

.btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--accent);
}
.btn-outline:hover {
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   CruizX section
   ============================================================ */
.cruizx-section {
    padding: 64px 0 72px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.cruizx-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 24px;
}

.cruizx-logo {
    width: 100%;
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 6px 24px rgba(44, 108, 255, 0.35));
}

.app-store-link {
    display: inline-block;
    line-height: 0;
    border-radius: 12px;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.app-store-link:hover { text-decoration: none; transform: translateY(-1px); opacity: 0.92; }
.app-store-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.app-store-badge {
    display: block;
    height: 44px;
    width: auto;
    max-width: 100%;
    margin: 0 auto;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.cruizx-art {
    position: relative;
    margin: 0 auto 40px;
    max-width: 560px;
    aspect-ratio: 16 / 9;
    border-radius: 8px;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 30% 80%, rgba(44, 108, 255, 0.35), transparent 60%),
        radial-gradient(ellipse at 70% 20%, rgba(120, 180, 255, 0.25), transparent 55%),
        linear-gradient(160deg, #07142e 0%, #050d22 100%);
}

.cruizx-glow {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(44, 108, 255, 0.25), transparent 60%);
}

.cruizx-route {
    position: absolute;
    inset: 0;
}

.route-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px 2px rgba(44, 108, 255, 0.85);
}
.route-dot.d1 { left: 12%; top: 78%; }
.route-dot.d2 { left: 30%; top: 60%; }
.route-dot.d3 { left: 50%; top: 48%; transform: scale(1.4); background: #fff; box-shadow: 0 0 18px 4px rgba(255,255,255,0.9); }
.route-dot.d4 { left: 70%; top: 34%; }
.route-dot.d5 { left: 86%; top: 18%; }

.cruizx-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.cruizx-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 40px 0 32px;
    text-align: left;
}

.feature {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px 22px;
}

.feature h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.feature p {
    margin: 0;
    font-size: 0.97rem;
}

/* ============================================================
   About KimTechTool
   ============================================================ */
.about-section {
    padding: 56px 0;
    border-top: 1px solid var(--border);
}

.about-title {
    font-size: clamp(2.25rem, 8vw, 3.5rem);
    margin-bottom: 40px;
}

.about-heading { margin-top: 16px; margin-bottom: 24px; }
.about-section .btn { margin-top: 16px; }

/* ============================================================
   Awards
   ============================================================ */
.awards-section {
    padding: 56px 0;
    border-top: 1px solid var(--border);
    text-align: center;
}

.award-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-width: 560px;
    margin: 24px auto 0;
    padding: 28px 24px;
    background: linear-gradient(160deg, rgba(44, 108, 255, 0.10), rgba(10, 26, 58, 0.4));
    border: 1px solid rgba(255, 215, 106, 0.25);
    border-radius: 12px;
    color: var(--text);
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.award-card:hover {
    text-decoration: none;
    transform: translateY(-2px);
    border-color: rgba(255, 215, 106, 0.55);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.award-ribbon { flex-shrink: 0; line-height: 0; }

.award-text { display: flex; flex-direction: column; gap: 6px; }
.award-year {
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin: 0;
}
.award-title {
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
}
.award-category {
    color: #ffd76a;
    font-size: 1rem;
    font-weight: 700;
    margin: 4px 0 0;
    line-height: 1.35;
}
.award-issuer {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}
.award-desc {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 8px 0 0;
    line-height: 1.5;
}

/* ============================================================
   Websites / Web design section
   ============================================================ */
.websites-section {
    padding: 64px 0 72px;
    border-top: 1px solid var(--border);
    text-align: center;
}

.case-card {
    margin: 32px 0 40px;
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
}

.case-card + .case-card { margin-top: 24px; }

.case-link { display: block; color: inherit; }
.case-link:hover { text-decoration: none; }

.case-preview {
    background: #0b1530;
    border-bottom: 1px solid var(--border);
}

.case-browser-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: #0e1a3a;
    border-bottom: 1px solid var(--border);
}

.case-browser-bar > span:not(.case-url) {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
}

.case-url {
    margin-left: 12px;
    padding: 4px 12px;
    font-size: 0.82rem;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

.case-screenshot {
    aspect-ratio: 16 / 9;
    background:
        radial-gradient(ellipse at 50% 110%, rgba(255, 180, 60, 0.18), transparent 60%),
        linear-gradient(180deg, #0a1a3a 0%, #050d22 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    text-align: center;
}

.case-screenshot-cruizx {
    background:
        radial-gradient(ellipse at 30% 80%, rgba(44, 108, 255, 0.35), transparent 60%),
        radial-gradient(ellipse at 70% 20%, rgba(120, 180, 255, 0.22), transparent 55%),
        linear-gradient(160deg, #07142e 0%, #050d22 100%);
}

.case-screenshot-encodex {
    background:
        radial-gradient(ellipse at 20% 30%, rgba(108, 92, 231, 0.32), transparent 60%),
        radial-gradient(ellipse at 80% 80%, rgba(0, 180, 216, 0.28), transparent 55%),
        linear-gradient(160deg, #0c1129 0%, #060912 100%);
}

.case-hero { max-width: 480px; }

.case-eyebrow {
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
}

.case-title {
    color: #fff;
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    margin-bottom: 12px;
    font-weight: 800;
}

.case-sub {
    color: var(--muted);
    font-size: 0.95rem;
    margin: 0;
}

.case-body { padding: 24px; text-align: center; }
.case-body h3 { margin-bottom: 12px; }
.case-body p { text-align: left; }
.case-body .btn { margin-top: 12px; }

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 32px 0;
    text-align: left;
}

.service {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 24px 22px;
}

.service h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.service p { margin: 0; font-size: 0.97rem; }

/* ============================================================
   Founder quote
   ============================================================ */
.founder-section { padding: 48px 0 72px; }

.founder-img {
    width: 100%;
    max-width: 360px;
    height: auto;
    margin: 0 auto 48px;
    border-radius: 6px;
}

.founder-quote {
    margin: 0 0 32px;
    padding: 0;
    color: var(--text);
    font-size: 1.2rem;
    line-height: 1.55;
    font-weight: 500;
}
.founder-quote p { color: var(--text); margin-bottom: 20px; }

.quote-attribution {
    color: var(--muted);
    font-style: italic;
    font-size: 1rem;
    font-weight: 400;
    margin-top: 16px;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { border-top: 1px solid var(--border); padding: 40px 0 32px; }
.footer-logo { display: block; margin-bottom: 28px; }
.footer-nav { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 8px; }
.footer-nav a { color: var(--text); font-weight: 500; }
.copyright { color: var(--muted); margin: 0; }

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

/* Tablet (≥640px) — 2-col cards, side-by-side buttons, horizontal header */
@media (min-width: 640px) {
    .container { padding: 0 32px; }

    .main-nav { gap: 32px; }

    .cards {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .cta-stack {
        flex-direction: row;
        justify-content: center;
        gap: 16px;
    }
    .cta-stack .btn { width: auto; min-width: 160px; }
}

/* Desktop (≥960px) — 3-col images, more spacing, bigger type */
@media (min-width: 960px) {
    body { font-size: 18px; }

    .hero { padding: 88px 0 40px; }
    .hero .lead { margin-bottom: 72px; }

    .media-section { padding: 72px 0 80px; }

    .media-section .container-narrow,
    .why-section .container-narrow {
        max-width: var(--content-wide);
    }

    .media-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }
    .media-item img { aspect-ratio: 3 / 4; }

    .why-section { padding: 80px 0 96px; }

    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
        max-width: 960px;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 48px;
    }

    .card { padding: 40px 36px; }

    .cruizx-section { padding: 96px 0; }
    .cruizx-features { grid-template-columns: 1fr 1fr; gap: 24px; }

    .websites-section { padding: 96px 0; }
    .services-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
    .case-body { padding: 32px; }

    .about-section { padding: 96px 0; }

    .awards-section { padding: 80px 0; }
    .award-card { flex-direction: row; text-align: left; padding: 32px; gap: 28px; }
    .award-text { text-align: left; }

    .founder-section { padding: 64px 0 96px; }
    .founder-img { max-width: 420px; }
    .founder-quote { font-size: 1.35rem; max-width: 760px; margin-left: auto; margin-right: auto; }
}

/* Large desktop (≥1200px) — 4-col cards */
@media (min-width: 1200px) {
    .cards { grid-template-columns: repeat(4, 1fr); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; }
}
