/* =========================================================================
   Teknical Engineers — stylesheet
   Professional, responsive, single-page theme
   ========================================================================= */

:root {
    --blue-900: #0b1e46;
    --blue-700: #1d4ed8;
    --blue-600: #2563eb;
    --blue-500: #3b82f6;
    --blue-050: #eff4ff;
    --teal-500: #0ea5a3;
    --teal-400: #14b8a6;
    --ink: #0f172a;
    --ink-2: #334155;
    --muted: #64748b;
    --line: #e6eaf1;
    --bg: #ffffff;
    --bg-soft: #f6f8fc;
    --white: #ffffff;

    --radius: 16px;
    --radius-lg: 22px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
    --shadow: 0 12px 34px rgba(15, 23, 42, .10);
    --shadow-lg: 0 24px 60px rgba(29, 78, 216, .18);

    --maxw: 1160px;
    --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --font-head: 'Plus Jakarta Sans', var(--font);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

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

.container {
    width: 100%;
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: 22px;
}

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); margin: 0; letter-spacing: -.02em; }

/* ---------------------------------------------------------------- Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    font-family: var(--font);
    font-weight: 700;
    font-size: 1rem;
    padding: .85rem 1.6rem;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--blue-600), var(--blue-700));
    color: #fff;
    box-shadow: 0 10px 24px rgba(29, 78, 216, .30);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(29, 78, 216, .40); }
.btn-ghost {
    background: #fff;
    color: var(--blue-700);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--blue-500); transform: translateY(-2px); }
.btn-block { width: 100%; }

/* ---------------------------------------------------------------- Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.logo { display: inline-flex; align-items: center; gap: .6rem; }
.logo-mark {
    width: 40px; height: 40px;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
    color: #fff;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -.03em;
    box-shadow: 0 6px 16px rgba(29, 78, 216, .35);
}
.logo-text {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -.02em;
    color: var(--ink);
    line-height: 1;
}
.logo-text span { color: var(--blue-600); }
.logo-light .logo-text { color: #fff; }
.logo-light .logo-text span { color: #7db0ff; }

.main-nav { display: flex; align-items: center; gap: 1.9rem; }
.main-nav a { font-weight: 600; color: var(--ink-2); font-size: .98rem; transition: color .2s; }
.main-nav a:hover { color: var(--blue-700); }
.main-nav .nav-cta {
    background: var(--blue-600);
    color: #fff;
    padding: .55rem 1.25rem;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(29, 78, 216, .3);
}
.main-nav .nav-cta:hover { color: #fff; background: var(--blue-700); }

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 44px; height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------------------------- Hero */
.hero {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(1100px 480px at 85% -10%, #e4edff 0%, rgba(228, 237, 255, 0) 60%),
        radial-gradient(800px 400px at 0% 0%, #e6fbf7 0%, rgba(230, 251, 247, 0) 55%),
        var(--bg);
    padding: clamp(3rem, 6vw, 6rem) 0 clamp(3.5rem, 6vw, 5.5rem);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}
.eyebrow {
    display: inline-block;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--blue-700);
    background: var(--blue-050);
    border: 1px solid #d6e2ff;
    padding: .4rem .9rem;
    border-radius: 999px;
    margin-bottom: 1.2rem;
}
.hero h1 {
    font-size: clamp(2.1rem, 4.6vw, 3.5rem);
    margin-bottom: 1.1rem;
}
.hero h1 .hl {
    background: linear-gradient(120deg, var(--blue-600), var(--teal-500));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.lead { font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink-2); max-width: 40ch; margin: 0 0 1.8rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.2rem; }

.hero-stats {
    list-style: none;
    padding: 0; margin: 0;
    display: flex;
    gap: clamp(1.2rem, 3vw, 2.6rem);
    flex-wrap: wrap;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong { font-family: var(--font-head); font-size: 1.7rem; color: var(--ink); }
.hero-stats span { font-size: .86rem; color: var(--muted); }

/* Hero visual */
.hero-visual { position: relative; min-height: 380px; }
.hero-orb {
    position: absolute; inset: 12% 8% auto auto;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: conic-gradient(from 120deg, #2563eb, #14b8a6, #2563eb);
    filter: blur(6px);
    opacity: .16;
    z-index: 0;
}
.glass-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: .85rem;
    background: rgba(255, 255, 255, .82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .9);
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: .95rem 1.15rem;
    z-index: 2;
    min-width: 210px;
}
.glass-card b { display: block; font-size: .98rem; color: var(--ink); }
.glass-card small { color: var(--muted); font-size: .8rem; }
.mini-app-icon {
    width: 44px; height: 44px;
    display: grid; place-items: center;
    font-size: 1.4rem;
    border-radius: 13px;
    background: var(--blue-050);
    flex: none;
}
.float-a { top: 6%;  right: 4%;  animation: floaty 6s ease-in-out infinite; }
.float-b { top: 42%; left: 0;    animation: floaty 7s ease-in-out .6s infinite; }
.float-c { bottom: 4%; right: 12%; animation: floaty 6.5s ease-in-out .3s infinite; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------------------------------------------------------------- Trust strip */
.trust-strip { background: var(--blue-900); color: #fff; }
.trust-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    padding: 1.4rem 22px;
    text-align: center;
}
.trust-inner div { display: flex; flex-direction: column; gap: .1rem; }
.trust-inner b { font-family: var(--font-head); font-size: 1.02rem; }
.trust-inner span { font-size: .82rem; color: #b7c6e6; }

/* ---------------------------------------------------------------- Sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-alt { background: var(--bg-soft); }
.section-head { max-width: 640px; margin: 0 auto clamp(2rem, 4vw, 3rem); text-align: center; }
.tag {
    display: inline-block;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--teal-500);
    margin-bottom: .7rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin-bottom: .7rem; }
.section-head p { color: var(--ink-2); font-size: 1.05rem; margin: 0; }

/* ---------------------------------------------------------------- Cards grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
}
.service-card, .why-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.7rem 1.6rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover, .why-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: #cfe0ff;
}
.ic {
    width: 54px; height: 54px;
    display: grid; place-items: center;
    font-size: 1.6rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--blue-050), #e6fbf7);
    margin-bottom: 1rem;
}
.service-card h3, .why-card h3 { font-size: 1.18rem; margin-bottom: .45rem; }
.service-card p, .why-card p { color: var(--ink-2); font-size: .97rem; margin: 0; }

/* ---------------------------------------------------------------- Apps */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.4rem;
}
.app-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
    position: relative;
}
.app-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.app-card.is-live { border-color: #bfe9df; background: linear-gradient(180deg, #f4fdfa, #fff); }
.app-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 1rem; }
.app-icon {
    width: 58px; height: 58px;
    display: grid; place-items: center;
    font-size: 2rem;
    border-radius: 16px;
    background: var(--blue-050);
    box-shadow: var(--shadow-sm);
}
.app-card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.app-card p { color: var(--ink-2); font-size: .94rem; margin: 0; }
.badge {
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .03em;
    padding: .3rem .7rem;
    border-radius: 999px;
    text-transform: uppercase;
}
.badge-live { background: #d9f7ee; color: #0b8a6b; }
.badge-soon { background: #fff0d6; color: #b26a00; }
.badge-next { background: #e7ecff; color: #3d54c9; }

/* ---------------------------------------------------------------- About */
.about-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: center;
}
.about-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 1rem; }
.about-copy p { color: var(--ink-2); margin: 0 0 1rem; font-size: 1.03rem; }
.about-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.chip {
    background: var(--blue-050);
    color: var(--blue-700);
    border: 1px solid #d6e2ff;
    padding: .45rem 1rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: .88rem;
}
.about-side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.stat-tile {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.4rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
}
.stat-tile strong {
    display: block;
    font-family: var(--font-head);
    font-size: 2rem;
    background: linear-gradient(120deg, var(--blue-600), var(--teal-500));
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat-tile span { font-size: .86rem; color: var(--muted); }

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

/* ---------------------------------------------------------------- Contact */
.contact-grid {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}
.contact-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: 1rem; }
.contact-copy p { color: var(--ink-2); font-size: 1.05rem; }
.contact-points { list-style: none; padding: 0; margin: 1.6rem 0 0; display: grid; gap: .9rem; }
.contact-points li { display: flex; align-items: center; gap: .7rem; color: var(--ink-2); font-weight: 500; }
.contact-points span {
    width: 38px; height: 38px; flex: none;
    display: grid; place-items: center;
    background: var(--blue-050); border-radius: 11px; font-size: 1.05rem;
}

.contact-form-wrap {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: clamp(1.5rem, 3vw, 2.4rem);
    box-shadow: var(--shadow);
}
.field { margin-bottom: 1.05rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; color: var(--ink); }
.field label small { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
    width: 100%;
    font-family: var(--font);
    font-size: 1rem;
    color: var(--ink);
    padding: .8rem .95rem;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    background: #fbfcfe;
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: none;
    border-color: var(--blue-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, .14);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .82rem; color: var(--muted); text-align: center; margin: .9rem 0 0; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert {
    padding: .95rem 1.1rem;
    border-radius: 12px;
    font-weight: 600;
    font-size: .95rem;
    margin-bottom: 1.3rem;
}
.alert-success { background: #d9f7ee; color: #0b6b52; border: 1px solid #a7e6d3; }
.alert-error { background: #fdecec; color: #b23434; border: 1px solid #f5c4c4; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: var(--blue-900); color: #cdd8ef; padding-top: 3.2rem; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 2rem;
    padding-bottom: 2.4rem;
}
.footer-brand p { margin: 1rem 0 0; font-size: .95rem; max-width: 34ch; color: #a9b8d8; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col a { display: block; color: #a9b8d8; font-size: .95rem; padding: .28rem 0; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-col .reg { font-size: .88rem; color: #a9b8d8; margin: 0 0 .4rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .container {
    display: flex; align-items: center; justify-content: space-between;
    padding-block: 1.3rem; font-size: .86rem; color: #8fa2c8; flex-wrap: wrap; gap: .5rem;
}

/* ---------------------------------------------------------------- Back to top */
.back-to-top {
    position: fixed;
    right: 22px; bottom: 22px;
    width: 46px; height: 46px;
    display: grid; place-items: center;
    background: var(--blue-600);
    color: #fff;
    border-radius: 50%;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden;
    transform: translateY(12px);
    transition: .25s;
    z-index: 60;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--blue-700); }

/* ---------------------------------------------------------------- Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ================================================================ Responsive */
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: 1fr; }
    .hero-visual { min-height: 320px; order: -1; }
    .cards-grid { grid-template-columns: repeat(2, 1fr); }
    .apps-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .trust-inner { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .main-nav {
        position: fixed;
        top: 72px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
        padding: .5rem 22px 1.2rem;
        transform: translateY(-140%);
        transition: transform .3s ease;
        z-index: 40;
    }
    .main-nav.open { transform: translateY(0); }
    .main-nav a { padding: .85rem .2rem; border-bottom: 1px solid var(--line); }
    .main-nav .nav-cta { text-align: center; margin-top: .7rem; border-bottom: none; }
    .nav-toggle { display: flex; }

    .cards-grid, .apps-grid, .why-grid, .about-side { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .hero-stats { gap: 1.4rem; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom .container { flex-direction: column; text-align: center; }
    .glass-card { min-width: 180px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; }
}

/* ================================================================ Additions */

/* ---- Skip link (keyboard users) ---- */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--blue-700);
    color: #fff;
    padding: .7rem 1.1rem;
    border-radius: 0 0 12px 0;
    font-weight: 700;
}
.skip-link:focus { left: 0; }

/* ---- Real app icons (images replace the old emoji tiles) ---- */
img.mini-app-icon { background: transparent; object-fit: cover; }
img.app-icon { padding: 0; background: transparent; object-fit: cover; }
.app-icon-emoji { font-size: 2rem; }

/* ---- Play Store / website links on each app card ---- */
.app-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.1rem;
    flex-wrap: wrap;
}
.play-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
    font-size: .92rem;
    color: var(--blue-700);
}
.play-link:hover { text-decoration: underline; }
.play-link span { transition: transform .2s ease; }
.app-card:hover .play-link span { transform: translateX(3px); }
.app-site { font-size: .92rem; font-weight: 600; color: var(--muted); }
.app-site:hover { color: var(--ink); text-decoration: underline; }

/* ---- Support table ---- */
.support-table {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.support-row {
    display: grid;
    grid-template-columns: 40px 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: .95rem 1.3rem;
    border-bottom: 1px solid var(--line);
}
.support-row:last-child { border-bottom: none; }
.support-row img { border-radius: 10px; }
.support-name { font-weight: 600; color: var(--ink); }
.support-links { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.support-links a { font-size: .9rem; font-weight: 600; color: var(--blue-700); }
.support-links a:hover { text-decoration: underline; }
.support-note { margin-top: 1.1rem; font-size: .92rem; color: var(--muted); }
.support-note a { color: var(--blue-700); font-weight: 600; }
.support-note a:hover { text-decoration: underline; }

/* ---- Field-level form errors ---- */
.field input.has-error, .field textarea.has-error, .field select.has-error {
    border-color: #e79c9c;
    background: #fffafa;
}
.field-error {
    margin: .4rem 0 0;
    font-size: .85rem;
    font-weight: 600;
    color: #b23434;
}
.form-note a { color: var(--blue-700); font-weight: 600; }
.form-note a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .support-row {
        grid-template-columns: 40px 1fr;
        row-gap: .5rem;
    }
    .support-links { grid-column: 2; }
}
