/* =======================================================
   SECTION 1 : HERO
======================================================= */
:root {
    --bg-deep: #07111d;
    --bg-panel: rgba(13, 31, 49, 0.72);
    --bg-panel-strong: rgba(14, 38, 58, 0.9);
    --text-main: #f4fbff;
    --text-muted: #a7bfd0;
    --cyan: #2ec4ff;
    --cyan-light: #73ddff;
    --green: #2ed573;
    --orange: #ffb142;
    --border: rgba(112, 211, 255, 0.2);
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    color: var(--text-main);
    background: var(--bg-deep);
    font-family: "Poppins", sans-serif;
}
button,
input,
textarea,
select {
    font: inherit;
}
/* ---------- Main hero container ---------- */
.hero {
    position: relative;
    /* min-height: 100vh; */
    overflow: hidden;
    isolation: isolate;
    padding: 0 5.5% 48px 4px;
    background:
        radial-gradient(circle at 15% 20%, rgba(46, 196, 255, 0.12), transparent 30%),
        radial-gradient(circle at 82% 65%, rgba(46, 213, 115, 0.08), transparent 32%),
        linear-gradient(135deg, #07111d 0%, #0a1b2c 48%, #06111d 100%);
}
/* ---------- Decorative background ---------- */
.hero-bg {
    position: absolute;
    z-index: -1;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.grid-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.38;
    background-image:
        linear-gradient(rgba(77, 197, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(77, 197, 255, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.55) 66%, transparent 100%);
}
.gradient-circle {
    position: absolute;
    border-radius: 50%;
    filter: blur(8px);
    opacity: 0.48;
}
.circle-1 {
    top: -260px;
    left: -180px;
    width: 620px;
    height: 620px;
    background: radial-gradient(circle, rgba(46, 196, 255, 0.35), transparent 68%);
    animation: floatGlow 12s ease-in-out infinite alternate;
}
.circle-2 {
    right: -210px;
    bottom: -260px;
    width: 720px;
    height: 720px;
    background: radial-gradient(circle, rgba(46, 213, 115, 0.2), transparent 67%);
    animation: floatGlow 14s ease-in-out infinite alternate-reverse;
}
@keyframes floatGlow {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(45px, 25px, 0) scale(1.08);
    }
}
/* ---------- Navigation ---------- */
.navbar {
    width: min(1380px, 100%);
    min-height: 65.7px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border-bottom: 1px solid rgba(143, 221, 255, 0.12);
    padding: 0 20px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}
.logo svg {
    flex: 0 0 38px;
    filter: drop-shadow(0 0 12px rgba(46, 196, 255, 0.45));
}
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2vw, 38px);
    margin: 0;
    padding: 0;
    list-style: none;
}
.nav-links a {
    position: relative;
    color: #b9d0df;
    font-size: 0.88rem;
    font-weight: 400;
    text-decoration: none;
    transition: color 0.25s ease;
}
.nav-links a::after {
    position: absolute;
    bottom: -9px;
    left: 0;
    width: 0;
    height: 2px;
    content: "";
    background: var(--cyan);
    box-shadow: 0 0 10px var(--cyan);
    transition: width 0.25s ease;
}
.nav-links a:hover {
    color: #ffffff;
}
.nav-links a:hover::after {
    width: 100%;
}
.login-btn,
.primary-btn,
.secondary-btn {
    border: 0;
    border-radius: 10px;
    cursor: pointer;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}
.login-btn {
    padding: 10px 22px;
    color: #dff8ff;
    border: 1px solid rgba(91, 211, 255, 0.38);
    background: rgba(46, 196, 255, 0.08);
    font-size: 0.86rem;
    font-weight: 500;
}
.login-btn:hover {
    transform: translateY(-2px);
    border-color: var(--cyan);
    background: rgba(46, 196, 255, 0.17);
    box-shadow: 0 8px 24px rgba(46, 196, 255, 0.18);
}
/* ---------- Hero content ---------- */
.hero-content {
    width: min(1380px, 100%);
    /*min-height: calc(100vh - 92px);*/
    margin: 0 auto;
    padding: 52px 0 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    align-items: center;
    gap: clamp(48px, 7vw, 116px);
}
.hero-left {
    max-width: 685px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 22px;
    padding: 8px 14px;
    color: var(--cyan-light);
    border: 1px solid rgba(46, 196, 255, 0.3);
    border-radius: 100px;
    background: rgba(46, 196, 255, 0.08);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 0 20px rgba(46, 196, 255, 0.04);
}
.badge::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    content: "";
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
}
.hero-left h1 {
    max-width: 720px;
    margin: 0;
    color: var(--text-main);
    font-size: clamp(2.8rem, 5.1vw, 5.1rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.055em;
}
.hero-left h1 span {
    display: block;
    margin: 6px 0;
    color: var(--cyan);
    text-shadow: 0 0 28px rgba(46, 196, 255, 0.22);
}
.hero-left > p {
    max-width: 630px;
    margin: 28px 0 0;
    color: var(--text-muted);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.9;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
}
.primary-btn {
    padding: 14px 25px;
    color: #03111b;
    background: linear-gradient(135deg, #63dcff, #2ec4ff);
    font-size: 0.92rem;
    font-weight: 600;
    box-shadow: 0 12px 28px rgba(46, 196, 255, 0.24);
}
.primary-btn:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #a4ecff, #2ec4ff);
    box-shadow: 0 18px 36px rgba(46, 196, 255, 0.34);
}
.secondary-btn {
    padding: 13px 24px;
    color: #d9f5ff;
    border: 1px solid rgba(151, 220, 250, 0.27);
    background: rgba(255, 255, 255, 0.035);
    font-size: 0.92rem;
    font-weight: 500;
}
.secondary-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(46, 196, 255, 0.62);
    background: rgba(46, 196, 255, 0.1);
}
/* ---------- Example prompt ---------- */
.example-box {
    position: relative;
    max-width: 560px;
    margin-top: 42px;
    overflow: hidden;
    border: 1px solid rgba(122, 216, 255, 0.19);
    border-radius: 14px;
    background: rgba(8, 26, 42, 0.66);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}
.example-box::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    content: "";
    background: linear-gradient(to bottom, var(--cyan), var(--green));
}
.example-box h3 {
    margin: 0;
    padding: 16px 22px;
    color: #dcf8ff;
    border-bottom: 1px solid rgba(125, 214, 255, 0.13);
    background: rgba(46, 196, 255, 0.045);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.example-box pre {
    margin: 0;
    padding: 19px 22px 22px;
    overflow-x: auto;
    color: #b9d7e7;
    font-family: "Courier New", monospace;
    font-size: 0.79rem;
    line-height: 1.65;
    white-space: pre-wrap;
}
/* ---------- Drawing illustration ---------- */
.hero-right {
    position: relative;
    width: 100%;
}
.drawing-card {
    position: relative;
    width: 100%;
    padding: 0 20px 24px;
    overflow: hidden;
    border: 1px solid rgba(114, 214, 255, 0.26);
    border-radius: 18px;
    background:
        linear-gradient(rgba(8, 25, 41, 0.84), rgba(5, 18, 31, 0.92)),
        radial-gradient(circle at center, rgba(46, 196, 255, 0.12), transparent 72%);
    box-shadow:
        0 0 0 1px rgba(46, 196, 255, 0.05) inset,
        0 25px 70px rgba(0, 0, 0, 0.42),
        0 0 60px rgba(46, 196, 255, 0.09);
    backdrop-filter: blur(18px);
}
.drawing-card::after {
    position: absolute;
    inset: 44px 20px 24px;
    z-index: 0;
    content: "";
    opacity: 0.38;
    background-image:
        linear-gradient(rgba(46, 196, 255, 0.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 196, 255, 0.075) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}
.drawing-card svg {
    position: relative;
    z-index: 1;
    display: block;
    filter: drop-shadow(0 0 18px rgba(46, 196, 255, 0.11));
}
.drawing-toolbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    height: 52px;
    border-bottom: 1px solid rgba(117, 210, 249, 0.14);
}
.drawing-toolbar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.drawing-toolbar span:nth-child(1) {
    background: #ff6262;
}
.drawing-toolbar span:nth-child(2) {
    background: var(--orange);
}
.drawing-toolbar span:nth-child(3) {
    background: var(--green);
}
/* ---------- Responsive hero ---------- */
@media (max-width: 1050px) {
    .hero {
        padding-right: 4%;
        padding-left: 10%;
    }
    .hero-content {
        grid-template-columns: 1fr;
        padding-top: 52px;
        gap: 54px;
    }
    .hero-left {
        max-width: 760px;
    }
    .hero-right {
        max-width: 750px;
    }
    .nav-links {
        gap: 18px;
    }
}
@media (max-width: 760px) {
    .hero {
        min-height: auto;
        padding: 0 22px 48px 4px;
    }
    .navbar {
        min-height: 74px;
    }
    .logo span {
        max-width: 175px;
        font-size: 0.82rem;
        line-height: 1.25;
    }
    .nav-links {
        display: none;
    }
    .login-btn {
        padding: 8px 15px;
        font-size: 0.78rem;
    }
    .hero-content {
        min-height: auto;
        padding: 58px 0 0;
        gap: 42px;
    }
    .hero-left h1 {
        font-size: clamp(2.45rem, 12vw, 3.7rem);
    }
    .hero-left > p {
        font-size: 0.93rem;
        line-height: 1.75;
    }
    .hero-buttons {
        margin-top: 27px;
    }
    .primary-btn,
    .secondary-btn {
        flex: 1 1 170px;
        padding: 13px 18px;
    }
    .example-box {
        margin-top: 32px;
    }
    .example-box pre {
        font-size: 0.72rem;
    }
    .drawing-card {
        padding: 0 10px 12px;
        border-radius: 14px;
    }
    .drawing-card svg {
        height: auto;
        min-height: 255px;
    }
    .drawing-card::after {
        inset: 44px 10px 12px;
    }
    /* Me */
    .navbar {
        padding: 20px;
    }
}
@media (max-width: 420px) {
    .hero-left h1 {
        letter-spacing: -0.045em;
    }
    .badge {
        font-size: 0.64rem;
        letter-spacing: 0.05em;
    }
    .hero-buttons {
        flex-direction: column;
    }
    .primary-btn,
    .secondary-btn {
        width: 100%;
    }
    /* Me */
    .navbar {
	padding: 20px;
    }
}
