/* =========================================================
   AKI INU TECH SHARED STYLES
   This file controls the appearance of every Aki Inu Tech page.
   ========================================================= */


/* ---------- Design variables ---------- */

:root {
    --background: #07111f;
    --surface: #0d1a2b;
    --surface-light: #132238;
    --border: #1d3048;

    --text: #e8eef7;
    --muted: #9fb0c7;

    --accent: #2f81f7;
    --accent-light: #58a6ff;

    --content-width: 1100px;   
}


/* ---------- Browser reset ---------- */

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


/* ---------- Base page settings ---------- */

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
}

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

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


/* ---------- Shared layout ---------- */

.container {
    width: min(var(--content-width), 90%);
    margin-inline: auto;
}


/* ---------- Header and navigation ---------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(10, 23, 39, 0.97);
    border-bottom: 1px solid rgba(144, 174, 210, 0.18);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(14px);
}

.site-nav {
    display: flex;
    min-height: 80px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    border-radius: 10px;
}

.brand-logo {
    width: 58px;
    height: 46px;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    white-space: nowrap;
}

.brand-name {
    color: var(--text);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.brand-tagline {
    margin-top: 5px;
    color: var(--accent-light);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand[aria-current="page"] {
    box-shadow: inset 0 -2px 0 var(--accent-light);
}
.desktop-nav,
.dropdown-menu,
.mobile-nav-list,
.mobile-submenu {
    margin: 0;
    padding: 0;
    list-style: none;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: clamp(2px, 0.4vw, 7px);
}

.desktop-nav > li {
    position: relative;
}

.nav-link,
.nav-trigger,
.mobile-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: #dce7f5;
    background: transparent;
    font-size: 0.91rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition:
        color 160ms ease,
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease,
        box-shadow 160ms ease;
}

.nav-link,
.nav-trigger {
    padding: 0 12px;
}

.nav-link:hover,
.nav-trigger:hover,
.dropdown-group.is-open > .nav-trigger {
    color: #ffffff;
    background: rgba(88, 166, 255, 0.11);
    border-color: rgba(121, 184, 255, 0.16);
}

.nav-link[aria-current="page"] {
    color: #ffffff;
    background: rgba(47, 129, 247, 0.17);
    border-color: rgba(88, 166, 255, 0.33);
    box-shadow: inset 0 -2px 0 var(--accent-light);
}

.contact-link {
    margin-left: 3px;
    padding-inline: 17px;
    color: #ffffff;
    background: var(--accent);
    box-shadow: 0 7px 18px rgba(47, 129, 247, 0.22);
}

.contact-link:hover,
.contact-link[aria-current="page"] {
    color: #ffffff;
    background: #3d8bfa;
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 10px 22px rgba(47, 129, 247, 0.30);
    transform: translateY(-2px);
}

.chevron {
    width: 7px;
    height: 7px;
    border-right: 1.8px solid currentColor;
    border-bottom: 1.8px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 160ms ease;
}

.dropdown-group.is-open .chevron {
    transform: translateY(2px) rotate(225deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    width: max-content;
    min-width: 190px;
    padding: 8px;
    border: 1px solid rgba(144, 174, 210, 0.18);
    border-radius: 14px;
    background: rgba(13, 26, 43, 0.99);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.34);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -5px);
    transition:
        opacity 150ms ease,
        visibility 150ms ease,
        transform 150ms ease;
}

html:not(.js) .dropdown-group:hover .dropdown-menu,
html:not(.js) .dropdown-group:focus-within .dropdown-menu,
.dropdown-group.is-open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.dropdown-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 9px;
    color: #dce7f5;
    font-size: 0.89rem;
    font-weight: 700;
    white-space: nowrap;
    transition:
        color 150ms ease,
        background-color 150ms ease;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible,
.dropdown-menu a[aria-current="page"] {
    color: #ffffff;
    background: rgba(88, 166, 255, 0.13);
}

:where(a, button):focus-visible {
    outline: 3px solid #9ac8ff;
    outline-offset: 3px;
    box-shadow: 0 0 0 2px var(--background);
}

.mobile-menu-toggle,
.mobile-panel {
    display: none;
}




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

.hero {
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 90px 0 70px;
}

.eyebrow {
    color: var(--accent-light);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

h1 {
    max-width: 850px;
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 1.03;
    letter-spacing: -0.04em;
    margin-bottom: 26px;
}

.hero-text {
    max-width: 760px;
    color: #b8c5d6;
    font-size: 1.2rem;
    margin-bottom: 34px;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0.5rem;
    max-width: 760px;
    color: var(--muted);
    font-size: 0.95rem;
}

.article-meta a {
    color: var(--accent-light);
    font-weight: 700;
}

.highlight {
    color: white;
    font-weight: 700;
}


/* ---------- Buttons ---------- */

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    display: inline-block;
    padding: 13px 20px;
    border-radius: 8px;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

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

.button-primary {
    background: var(--accent);
    color: white;
}

.button-secondary {
    border: 1px solid #41536c;
    color: #dce7f5;
}


/* ---------- General sections ---------- */

.section {
    padding: 75px 0;
}

.section-heading {
    margin-bottom: 35px;
}

.section-heading h2 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.section-heading p {
    color: var(--muted);
    max-width: 700px;
}


/* ---------- Card grid ---------- */

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

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
}

.card-number {
    color: var(--accent-light);
    font-weight: 700;
    margin-bottom: 14px;
}

.card h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.card p {
    color: var(--muted);
}

.card-link {
    display: inline-flex;
    margin-top: 20px;
    color: var(--accent-light);
    font-weight: 700;
    gap: 8px;
}

.card-link:hover,
.card-link:focus-visible {
    color: white;
}


/* ---------- Mission statement ---------- */

.mission {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 38px;
}

.mission blockquote {
    max-width: 850px;
    font-size: clamp(1.45rem, 4vw, 2.2rem);
    line-height: 1.35;
    font-weight: 700;
}

.mission p {
    color: var(--muted);
    margin-top: 18px;
}


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

footer {
    margin-top: 40px;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    color: #8496ad;
    font-size: 0.9rem;
}

/* ---------- Consulting page identity ---------- */

.page-consulting {
    --accent: #d99a3d;
    --accent-light: #f0b955;
}

.page-consulting .eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 7px 14px;
    border: 1px solid rgba(240, 185, 85, 0.35);
    border-radius: 999px;
    background: rgba(217, 154, 61, 0.12);
    color: var(--accent-light);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.page-consulting .mission {
    border-color: rgba(240, 185, 85, 0.25);
}

.page-consulting .card {
    border-color: rgba(240, 185, 85, 0.14);
}


/* ---------- Tutorial pages ---------- */

.tutorial-content {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.tutorial-section {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px;
}

.tutorial-section h2 {
    margin-bottom: 14px;
    color: var(--accent-light);
}

.tutorial-section p,
.tutorial-section li {
    color: var(--muted);
}

.tutorial-section ul {
    margin-left: 22px;
    margin-top: 12px;
}
/* ---------- Mobile layout ---------- */

@media (min-width: 841px) and (max-width: 1024px) {
    .site-nav {
        gap: 14px;
    }

    .desktop-nav {
        gap: 1px;
    }

    .nav-link,
    .nav-trigger {
        padding-inline: 9px;
        font-size: 0.84rem;
    }

    .brand {
        gap: 8px;
    }

    .brand-logo {
        width: 50px;
        height: 40px;
    }

    .brand-name {
        font-size: 1.02rem;
    }

    .brand-tagline {
        font-size: 0.59rem;
    }
}

@media (max-width: 840px) {
    .grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
        padding-top: 70px;
    }

    .site-nav {
        min-height: 76px;
    }

    .desktop-nav {
        display: none;
    }

    .mobile-menu-toggle {
        display: inline-flex;
        min-width: 44px;
        min-height: 44px;
        padding: 0 13px;
        border-color: var(--border);
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.035);
    }

    .menu-icon,
    .menu-icon::before,
    .menu-icon::after {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        content: "";
        transition:
            transform 160ms ease,
            opacity 160ms ease;
    }

    .menu-icon {
        position: relative;
    }

    .menu-icon::before {
        position: absolute;
        top: -6px;
    }

    .menu-icon::after {
        position: absolute;
        top: 6px;
    }

    .mobile-menu-toggle[aria-expanded="true"] .menu-icon {
        background: transparent;
    }

    .mobile-menu-toggle[aria-expanded="true"] .menu-icon::before {
        transform: translateY(6px) rotate(45deg);
    }

    .mobile-menu-toggle[aria-expanded="true"] .menu-icon::after {
        transform: translateY(-6px) rotate(-45deg);
    }

    .mobile-panel {
        display: block;
        border-top: 1px solid var(--border);
        background: rgba(8, 20, 35, 0.99);
    }

    .js .mobile-panel {
        display: none;
    }

    .js .mobile-panel.is-open {
        display: block;
    }

    .mobile-nav-list {
        width: min(var(--content-width), 90%);
        margin-inline: auto;
        padding: 16px 0 22px;
    }

    .mobile-direct,
    .mobile-group-label,
    .mobile-submenu a {
        display: flex;
        min-height: 44px;
        align-items: center;
        border-radius: 10px;
    }

    .mobile-direct,
    .mobile-submenu a {
        padding: 10px 12px;
        color: #dce7f5;
        font-weight: 700;
    }

    .mobile-direct:hover,
    .mobile-submenu a:hover {
        color: #ffffff;
        background: rgba(88, 166, 255, 0.11);
    }

    .mobile-direct[aria-current="page"],
    .mobile-submenu a[aria-current="page"] {
        color: #ffffff;
        background: rgba(47, 129, 247, 0.17);
        box-shadow: inset 3px 0 0 var(--accent-light);
    }

    .mobile-group {
        margin-block: 6px;
        padding: 10px 8px 8px;
        border: 1px solid rgba(144, 174, 210, 0.12);
        border-radius: 13px;
        background: rgba(255, 255, 255, 0.025);
    }

    .mobile-group-label {
        min-height: auto;
        padding: 0 7px 5px;
        color: var(--accent-light);
        font-size: 0.73rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .mobile-submenu a {
        padding-left: 16px;
    }

    .mobile-contact {
        justify-content: center;
        margin-top: 12px;
        color: #ffffff;
        background: var(--accent);
    }
}

@media (max-width: 420px) {
    .container,
    .mobile-nav-list {
        width: min(var(--content-width), calc(100% - 28px));
    }

    .brand-logo {
        width: 48px;
        height: 38px;
    }

    .brand-tagline {
        font-size: 0.56rem;
        letter-spacing: 0.055em;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
/* =========================================================
   Aki Inu Tech UI Components v1.0
   Reusable tutorial callout boxes
========================================================= */

.callout {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-left-width: 4px;
    border-radius: 10px;
    padding: 18px 20px;
    margin: 24px 0;
    background: rgba(255, 255, 255, 0.03);
}

.callout h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

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

.callout-info {
    border-left-color: #4da3ff;
}

.callout-warning {
    border-left-color: #f0b429;
}

.callout-realworld {
    border-left-color: #8b5cf6;
}

.callout-verification {
    border-left-color: #34d399;
}
.callout-tip {
    border-left-color: #00d4ff;
}
/* =========================================================
   Aki Inu Tech Code Blocks
========================================================= */

.code-block {
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    margin: 24px 0;
    overflow: hidden;
}

.code-block-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.code-block pre {
    margin: 0;
    padding: 18px;
    overflow-x: auto;
}

.code-block code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.92rem;
    line-height: 1.6;
}
/* =========================================================
   Aki Inu Tech Screenshot Component
========================================================= */

.screenshot {
    margin: 30px 0;
    text-align: center;
}

.screenshot img {
    width: 100%;
    max-width: 1000px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.screenshot figcaption {
    margin-top: 12px;
    font-size: .9rem;
    opacity: .75;
    font-style: italic;
}
/* =========================================================
   Aki Inu Tech Tables
========================================================= */

.kt-table {
    width: 100%;
    border-collapse: collapse;
    margin: 30px 0;
}

.kt-table th,
.kt-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,.10);
}

.kt-table th {
    font-weight: 700;
}

.kt-table tr:hover {
    background: rgba(255,255,255,.03);
}
/* =========================================================
   Aki Inu Tech Tutorial Steps
========================================================= */

.kt-step {
    margin: 28px 0;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    background: rgba(255,255,255,.025);
}

.kt-step-number {
    margin: 0 0 8px;
    font-size: .8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    opacity: .7;
}

.kt-step h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.kt-step p:last-child {
    margin-bottom: 0;
}
