/* GLOBAL VARIABLES: The "Pristine Ceramic" Palette */
:root {
    --bg-ceramic: #F5F4F0;
    --text-graphite: #1A1C20;
    --text-muted: #6B7280;
    --accent-cyan: #00E5FF;
    --accent-amber: #FFB300;
    --accent-green: #00ff7b;
    --shadow-emboss: -12px -12px 24px rgba(255, 255, 255, 0.9), 12px 12px 24px rgba(180, 185, 190, 0.4);
    --shadow-inset: inset 6px 6px 12px rgba(180, 185, 190, 0.5), inset -6px -6px 12px rgba(255, 255, 255, 0.9);
}

/* LANGUAGE TOGGLE STYLES */
body[data-lang="ja"] .lang-en {
    display: none !important;
}

body[data-lang="en"] .lang-ja {
    display: none !important;
}

.lang-toggle {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 20px;
    padding: 4px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.lang-btn {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 16px;
    transition: all 0.2s ease;
    color: var(--text-muted);
}

.lang-btn.active {
    background: var(--bg-ceramic);
    color: var(--text-graphite);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* BASE STYLING */
body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-ceramic);
    color: var(--text-graphite);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: 100px 0;
}

/* HEADER & LOGO */
header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: rgba(245, 244, 240, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.logo {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-graphite);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* TYPOGRAPHY */
h1 {
    font-size: 56px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

h2 {
    font-size: 32px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin-bottom: 15px;
}

h3 {
    font-size: 24px;
    font-weight: 900;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

p {
    font-size: 16px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.kicker {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* PILLS / BADGES */
.badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    color: #fff;
}

.badge-cyan {
    background-color: var(--accent-cyan);
}

.badge-amber {
    background-color: var(--accent-amber);
}

.badge-green {
    background-color: var(--accent-green);
}

.badge-graphite {
    background-color: var(--text-graphite);
}

/* LIVING LED INDICATORS & RECESSED BARS */
.led-recessed {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    box-shadow: var(--shadow-inset);
    display: flex;
    justify-content: center;
    align-items: center;
}

.led-glow-cyan {
    width: 6px;
    height: 6px;
    background-color: var(--accent-cyan);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px var(--accent-cyan);
    animation: pulse-led 2s infinite alternate ease-in-out;
}

.led-glow-amber {
    width: 6px;
    height: 6px;
    background-color: var(--accent-amber);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px var(--accent-amber);
    animation: pulse-led 2s infinite alternate ease-in-out 0.5s;
}

.led-glow-green {
    width: 6px;
    height: 6px;
    background-color: var(--accent-green);
    border-radius: 50%;
    box-shadow: 0 0 10px 2px var(--accent-green);
    animation: pulse-led 2s infinite alternate ease-in-out 1s;
}

.led-bar-recessed {
    width: 60px;
    height: 12px;
    border-radius: 10px;
    box-shadow: var(--shadow-inset);
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px auto 0 auto;
}

.led-bar-glow-cyan {
    width: 30px;
    height: 4px;
    background-color: var(--accent-cyan);
    border-radius: 4px;
    box-shadow: 0 0 12px 2px var(--accent-cyan);
    animation: pulse-led 2s infinite alternate ease-in-out;
}

.led-bar-glow-amber {
    width: 30px;
    height: 4px;
    background-color: var(--accent-amber);
    border-radius: 4px;
    box-shadow: 0 0 12px 2px var(--accent-amber);
    animation: pulse-led 2s infinite alternate ease-in-out 0.5s;
}

@keyframes pulse-led {
    0% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    100% {
        opacity: 1;
        transform: scale(1.1);
    }
}

/* BREATHING BUTTONS */
.btn-group {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn {
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-ceramic);
    color: var(--text-graphite);
    border: 2px solid transparent;
}

.btn-primary {
    animation: breathe-cyan 4s infinite alternate ease-in-out;
}

.btn-secondary {
    animation: breathe-green 4s infinite alternate ease-in-out;
}

@keyframes breathe-cyan {
    0% {
        transform: scale(1);
        box-shadow: var(--shadow-emboss), 0 0 0px rgba(0, 229, 255, 0);
    }

    100% {
        transform: scale(1.02);
        box-shadow: var(--shadow-emboss), 0 0 15px rgba(0, 229, 255, 0.2);
    }
}

@keyframes breathe-green {
    0% {
        transform: scale(1);
        box-shadow: var(--shadow-emboss), 0 0 0px rgba(0, 255, 123, 0);
    }

    100% {
        transform: scale(1.02);
        box-shadow: var(--shadow-emboss), 0 0 15px rgba(0, 255, 123, 0.2);
    }
}

.btn-primary:hover {
    animation-play-state: paused;
    border-color: var(--accent-cyan);
    box-shadow: var(--shadow-emboss), 0 0 25px rgba(0, 229, 255, 0.5);
    transform: translateY(-2px) scale(1.02);
}

.btn-secondary:hover {
    animation-play-state: paused;
    border-color: var(--accent-green);
    box-shadow: var(--shadow-emboss), 0 0 25px rgba(0, 255, 123, 0.5);
    transform: translateY(-2px) scale(1.02);
}

.btn:active {
    transform: scale(0.97) !important;
}

/* NEUMORPHIC CARDS */
.card {
    background-color: var(--bg-ceramic);
    border-radius: 24px;
    padding: 40px;
    box-shadow: var(--shadow-emboss);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.card-recessed {
    background-color: var(--bg-ceramic);
    border-radius: 16px;
    padding: 25px;
    box-shadow: var(--shadow-inset);
    border: 1px solid rgba(0, 0, 0, 0.03);
    margin-bottom: 15px;
}

/* LAYOUTS */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

/* IMAGE VIGNETTE, MASKING & BLENDING */
.image-wrapper {
    position: relative;
    width: 100%;
}

.glow-bg-cyan::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15) 0%, rgba(245, 244, 240, 0) 60%);
    z-index: 0;
    pointer-events: none;
}

.glow-bg-green::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(0, 255, 123, 0.15) 0%, rgba(245, 244, 240, 0) 60%);
    z-index: 0;
    pointer-events: none;
}

.image-placeholder {
    background-color: var(--bg-ceramic);
    border-radius: 24px;
    box-shadow: var(--shadow-inset);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 3 / 2;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.glow-inner-cyan {
    box-shadow: var(--shadow-inset), inset 0 0 60px 10px rgba(0, 229, 255, 0.4);
}

.glow-inner-green {
    box-shadow: var(--shadow-inset), inset 0 0 60px 10px rgba(0, 255, 123, 0.4);
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

/* Created a dedicated class for team headshots. Added flex-shrink: 0 to prevent flexbox from squishing them horizontally. */
.team-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 20px;
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
    box-shadow: var(--shadow-inset);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* RESPONSIVE */
@media (max-width: 900px) {

    .grid-2,
    .grid-3 {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    h1 {
        font-size: 40px;
    }

    section {
        padding: 60px 0;
    }

    .mobile-order-1 {
        order: 1;
    }

    .mobile-order-2 {
        order: 2;
    }

    .hardware-row {
        display: flex;
        flex-direction: column;
    }
}

/* FOOTER */
footer {
    background-color: var(--text-graphite);
    color: #fff;
    padding: 60px 0;
    margin-top: 50px;
}

footer p {
    color: #A0AEC0;
    font-size: 14px;
    margin-bottom: 5px;
}

footer h3 {
    color: #fff;
    margin-bottom: 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 10px;
    margin-top: 15px;
    font-size: 14px;
}

.footer-label {
    font-weight: 700;
    color: #fff;
}

/* CASCADING UI MOCKUP */
.ui-cascade-container {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ui-layer {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.ui-layer-1 {
    width: 80%;
    top: 5%;
    right: 5%;
    z-index: 1;
    opacity: 0.6;
}

.ui-layer-2 {
    width: 85%;
    top: 25%;
    left: 5%;
    z-index: 2;
}

.ui-layer-3 {
    width: 70%;
    bottom: 5%;
    right: 10%;
    z-index: 3;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.ui-cascade-container:hover .ui-layer-1 {
    transform: translate(10px, -10px);
    opacity: 0.8;
}

.ui-cascade-container:hover .ui-layer-2 {
    transform: translate(-10px, 0);
}

.ui-cascade-container:hover .ui-layer-3 {
    transform: translate(10px, 10px) scale(1.02);
}

.ui-layer img {
    width: 100%;
    height: auto;
    display: block;
}

/* CONTACT FORM STYLING */
.form-container {
    background-color: var(--bg-ceramic);
    border-radius: 24px;
    padding: 50px;
    box-shadow: var(--shadow-emboss);
    border: 1px solid rgba(255, 255, 255, 0.6);
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-graphite);
    margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    padding: 16px 20px;
    border-radius: 12px;
    border: none;
    background-color: var(--bg-ceramic);
    color: var(--text-graphite);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    box-shadow: var(--shadow-inset);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    box-shadow: var(--shadow-inset), inset 0 0 0 2px var(--accent-cyan);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-container {
        padding: 30px 20px;
    }
}

/* MOBILE NAVIGATION */
.nav-links {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    color: var(--text-graphite);
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.hamburger {
    display: none;
    cursor: pointer;
    border: none;
    background: none;
    padding: 10px;
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background-color: var(--text-graphite);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(245, 244, 240, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        padding: 20px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
    }

    .nav-links.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

.cta-banner {
    background-color: var(--accent-amber);
    color: #000;
    text-align: center;
    padding: 12px 20px;
    font-size: 13px;
    font-weight: 700;
    border-radius: 8px;
    margin-bottom: 40px;
    box-shadow: 0 4px 10px rgba(255, 179, 0, 0.2);
    display: inline-block;
    width: 100%;
    box-sizing: border-box;
}

/* 3D Protruding Banner */
.cta-banner-3d {
    background: linear-gradient(145deg, #ffc01a, #e6a100);
    /* 3D Amber Gradient */
    color: #1A1C20;
    border-radius: 16px;
    padding: 16px 30px;
    margin: 0 auto 50px auto;
    max-width: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    text-align: center;
    border: 1px solid #ffca33;

    /* The 3D Protrusion Magic */
    box-shadow:
        15px 15px 30px rgba(180, 185, 190, 0.5),
        /* Heavy bottom-right outer shadow */
        -15px -15px 30px rgba(255, 255, 255, 1),
        /* Heavy top-left outer highlight */
        inset 2px 2px 4px rgba(255, 255, 255, 0.8),
        /* Inner top edge bevel highlight */
        inset -3px -3px 6px rgba(200, 130, 0, 0.5);
    /* Inner bottom edge bevel shadow */
}

/* Apple-Sleek Status Pill */
.cta-pill-sleek {
    background-color: var(--text-graphite);
    color: #ffffff;
    border-radius: 999px;
    padding: 8px 24px 8px 10px;
    margin: 0 auto 50px auto;
    max-width: max-content;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    box-shadow: 0 12px 30px rgba(26, 28, 32, 0.15), 0 1px 3px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.cta-pill-sleek:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 40px rgba(26, 28, 32, 0.2), 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cta-pill-sleek .led-recessed-dark {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: #000000;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: inset 0 2px 4px rgba(255, 255, 255, 0.1), inset 0 2px 6px rgba(0, 0, 0, 0.8);
    flex-shrink: 0;
}