/* ===================================================================
   KaoTech — standalone site styles
   Brand: black base, blue #3a50c0, orange #e8891d (from the logo).
   Dark by default, light theme via toggle.
   =================================================================== */

:root {
    --kao-blue: #3a50c0;
    --kao-blue-bright: #8fa1f5;
    --kao-orange: #e8891d;

    --bg: #0a0a0d;
    --bg-elevated: #101017;
    --bg-card: #14141d;
    --text: #f2f2f6;
    --text-muted: #a2a7bd;
    --border: #262633;
    --accent: var(--kao-orange);
    --heading-accent: var(--kao-blue-bright);
    --nav-bg: rgba(10, 10, 13, 0.88);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

body.light-mode {
    --bg: #f4f4f6;
    --bg-elevated: #ffffff;
    --bg-card: #ffffff;
    --text: #17181f;
    --text-muted: #575d75;
    --border: #dcdde6;
    --accent: #c86e0a;
    --heading-accent: var(--kao-blue);
    --nav-bg: rgba(255, 255, 255, 0.88);
    --shadow: 0 8px 24px rgba(23, 24, 31, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

body {
    margin: 0;
    font-family: "Fredoka", "Segoe UI", system-ui, sans-serif;
    background-color: var(--bg);
    /* Honeycomb tile across the whole page — a nod to the logo's infill */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z' fill='%23e8891d' fill-opacity='0.045'/%3E%3C/svg%3E");
    color: var(--text);
    line-height: 1.6;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body.light-mode {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='49' viewBox='0 0 28 49'%3E%3Cpath d='M13.99 9.25l13 7.5v15l-13 7.5L1 31.75v-15l12.99-7.5zM3 17.9v12.7l10.99 6.34 11-6.35V17.9l-11-6.34L3 17.9zM0 15l12.98-7.5V0h-2v6.35L0 12.69v2.3zm0 18.5L12.98 41v8h-2v-6.85L0 35.81v-2.3zM15 0v7.5L27.99 15H28v-2.31h-.01L17 6.35V0h-2zm0 49v-8l12.99-7.5H28v2.31h-.01L17 42.15V49h-2z' fill='%23c86e0a' fill-opacity='0.10'/%3E%3C/svg%3E");
}

/* ------------------------------------------------------------------
   Navigation
   ------------------------------------------------------------------ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.6rem 1.2rem;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 0.5px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.brand-kao { color: var(--heading-accent); }
.brand-tech { color: var(--kao-orange); }

.site-nav nav {
    margin-left: auto;
    display: flex;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.site-nav nav a {
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-weight: 500;
    transition: color 0.2s, background 0.2s;
}

.site-nav nav a:hover {
    color: var(--text);
    background: var(--bg-card);
}

#theme-toggle {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 1.05rem;
    padding: 0.35rem 0.6rem;
    cursor: pointer;
    line-height: 1;
    transition: transform 0.2s;
}

#theme-toggle:hover { transform: scale(1.12); }

/* ------------------------------------------------------------------
   Hero — honeycomb over black, blue + orange glows
   ------------------------------------------------------------------ */
.hero {
    text-align: center;
    padding: 4.5rem 1.5rem;
    background-image:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(58, 80, 192, 0.30), transparent),
        radial-gradient(ellipse 50% 45% at 85% 35%, rgba(232, 137, 29, 0.14), transparent);
}

body.light-mode .hero {
    background-image:
        radial-gradient(ellipse 70% 60% at 50% 0%, rgba(58, 80, 192, 0.12), transparent),
        radial-gradient(ellipse 50% 45% at 85% 35%, rgba(232, 137, 29, 0.08), transparent);
}

.hero-banner {
    width: min(620px, 90vw);
    height: auto;
    background: #0d0d0d;
    border: 1px solid rgba(232, 137, 29, 0.35);
    border-radius: 16px;
    padding: 1rem 1.5rem;
    box-shadow: 0 0 35px rgba(232, 137, 29, 0.25);
    margin-bottom: 1.5rem;
}

.tagline {
    font-size: clamp(1.05rem, 2.5vw, 1.3rem);
    color: var(--text-muted);
    max-width: 36em;
    margin: 0 auto 2rem;
}

.hero-actions {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
    display: inline-block;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
    font-weight: 600;
    font-family: inherit;
    font-size: 1rem;
    text-decoration: none;
    transition: transform 0.15s, box-shadow 0.15s, background 0.2s;
    cursor: pointer;
}

.btn-primary {
    background: var(--kao-orange);
    color: #2b1600;
    box-shadow: 0 4px 16px rgba(232, 137, 29, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(232, 137, 29, 0.55);
}

.btn-ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--kao-blue);
}

.btn-ghost:hover {
    border-color: var(--kao-orange);
    transform: translateY(-2px);
}

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

h2 {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 600;
    margin: 0 0 0.5rem;
}

/* Hexagon section markers — a nod to the logo's infill */
.hex {
    display: inline-block;
    width: 16px;
    height: 14px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    flex-shrink: 0;
}

.hex-orange { background: var(--kao-orange); filter: drop-shadow(0 0 6px var(--kao-orange)); }
.hex-blue   { background: var(--kao-blue-bright); filter: drop-shadow(0 0 6px var(--kao-blue)); }

/* ------------------------------------------------------------------
   Cards
   ------------------------------------------------------------------ */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, border-color 0.2s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--kao-orange);
}

.card-icon { font-size: 2rem; margin-bottom: 0.4rem; }

.card h3 {
    margin: 0 0 0.4rem;
    font-weight: 600;
    color: var(--heading-accent);
}

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

/* ------------------------------------------------------------------
   Steps
   ------------------------------------------------------------------ */
.steps {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
}

.steps li {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.4rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s, border-color 0.2s;
}

.steps li:hover {
    transform: translateY(-4px);
    border-color: var(--kao-blue);
}

.steps h3 {
    margin: 0 0 0.4rem;
    font-weight: 600;
    color: var(--heading-accent);
}

.steps p { margin: 0; color: var(--text-muted); }

/* ------------------------------------------------------------------
   Shop notice
   ------------------------------------------------------------------ */
.notice-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-top: 1.5rem;
    background: var(--bg-card);
    border: 1.5px dashed var(--kao-orange);
    border-radius: 16px;
    padding: 1.4rem 1.6rem;
}

.notice-icon { font-size: 2rem; line-height: 1; }

.notice-card h3 {
    margin: 0 0 0.3rem;
    font-weight: 600;
    color: var(--heading-accent);
}

.notice-card p { margin: 0; color: var(--text-muted); }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
footer {
    text-align: center;
    padding: 2.5rem 1.5rem;
    border-top: 1px solid var(--border);
    background: var(--bg-elevated);
    margin-top: 2rem;
}

footer p { margin: 0.3rem 0; }

.footer-note { color: var(--text-muted); font-size: 0.92rem; }

.footer-note a {
    color: var(--accent);
    text-decoration: none;
}

.footer-note a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------
   Small screens
   ------------------------------------------------------------------ */
@media (max-width: 640px) {
    .site-nav nav a { padding: 0.35rem 0.55rem; font-size: 0.92rem; }
    .hero { padding: 3rem 1rem; }
}
