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

body{
    background:#0f1115;
    color:white;
    font-family:'Inter', Arial, sans-serif;
}

/* =========================================================
   HERO
   ========================================================= */

.hero{
    position:relative;
    height:120vh;
    overflow:hidden;
}

.hero-bg{
    position:absolute;
    inset:0;
    background-image:url('../images/hero-chaos-vs-order.jpg');
    background-size:cover;
    background-position:center 40%;
    transform:scale(1.02);
    filter:brightness(0.55) saturate(0.8);
}

.overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        180deg,
        rgba(15,17,21,0.72) 0%,
        rgba(15,17,21,0.45) 30%,
        rgba(15,17,21,0.45) 60%,
        rgba(15,17,21,0.88) 85%,
        rgba(15,17,21,1.00) 100%
    );
}

.hero-glow{
    position:absolute;
    inset:0;
    background:radial-gradient(
        ellipse 70% 50% at 50% 45%,
        rgba(45,212,191,0.07) 0%,
        rgba(45,212,191,0.03) 40%,
        transparent 70%
    );
    pointer-events:none;
    z-index:1;
}

.hero-content{
    position:relative;
    z-index:2;
    height:100%;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;
    padding:120px 40px 80px;
    max-width:900px;
    margin:0 auto;
    width:100%;
}

.hero-content .eyebrow{
    font-size:11px;
    font-weight:500;
    letter-spacing:0.2em;
    text-transform:uppercase;
    color:#2dd4bf;
    margin-bottom:28px;
    opacity:1;
    animation:hero-fade-in 0.6s ease-out 0.1s both;
}

h1{
    font-size:72px;
    margin-bottom:20px;
}

.hero-content h1{
    font-size:clamp(48px, 6vw, 80px);
    font-weight:700;
    line-height:1.06;
    letter-spacing:-0.03em;
    margin:0 0 28px;
    color:#ffffff;
    max-width:800px;
    animation:hero-fade-in 0.7s ease-out 0.2s both;
}

.gradient-word{
    background:linear-gradient(135deg, #2dd4bf 0%, #67e8f9 50%, #a5f3fc 100%);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
    background-clip:text;
}

.hero-content .subtext{
    font-size:19px;
    font-weight:400;
    color:rgba(255,255,255,0.58);
    max-width:520px;
    line-height:1.65;
    margin:0 0 44px;
    letter-spacing:-0.01em;
    opacity:1;
    animation:hero-fade-in 0.7s ease-out 0.35s both;
}

.subtext{
    max-width:700px;
    line-height:1.6;
    opacity:0.85;
}

.hero-content .buttons{
    display:flex;
    gap:14px;
    justify-content:center;
    flex-wrap:wrap;
    animation:hero-fade-in 0.6s ease-out 0.5s both;
}

.buttons{
    display:flex;
    gap:16px;
    margin-top:36px;
}

.hero-content .btn-primary{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    font-weight:600;
    padding:12px 24px;
    border-radius:8px;
    border:none;
    color:#0a0e13;
    background:#2dd4bf;
    text-decoration:none;
    letter-spacing:0.01em;
    transition:background 0.15s, box-shadow 0.15s, transform 0.1s;
    box-shadow:0 0 0 0 rgba(45,212,191,0);
}

.hero-content .btn-primary:hover{
    background:#5eead4;
    box-shadow:0 0 24px rgba(45,212,191,0.28);
    transform:translateY(-1px);
}

.hero-content .btn-ghost{
    display:inline-flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    font-weight:500;
    padding:12px 24px;
    border-radius:8px;
    border:1px solid rgba(255,255,255,0.18);
    color:rgba(255,255,255,0.82);
    background:rgba(255,255,255,0.04);
    text-decoration:none;
    letter-spacing:0.01em;
    transition:border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
}

.hero-content .btn-ghost:hover{
    border-color:rgba(255,255,255,0.35);
    background:rgba(255,255,255,0.08);
    color:rgba(255,255,255,0.95);
    transform:translateY(-1px);
}

.buttons a{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:12px 28px;
    border-radius:6px;
    font-size:15px;
    font-weight:bold;
    letter-spacing:1px;
    text-decoration:none;
    border:2px solid white;
    color:white;
    background:rgba(255,255,255,0.12);
    transition:background 0.2s, color 0.2s;
}

.buttons a:hover{
    background:white;
    color:#0f1115;
}

.hero-content .social{
    display:flex;
    gap:24px;
    margin-top:36px;
    animation:hero-fade-in 0.6s ease-out 0.65s both;
}

.social{
    display:flex;
    gap:20px;
    margin-top:24px;
}

.hero-content .social a{
    color:rgba(255,255,255,0.32);
    font-size:17px;
    text-decoration:none;
    transition:color 0.15s, transform 0.15s;
}

.hero-content .social a:hover{
    color:rgba(255,255,255,0.85);
    transform:translateY(-1px);
}

.social a{
    color:rgba(255,255,255,0.7);
    font-size:22px;
    text-decoration:none;
    transition:color 0.2s;
}

.social a:hover{
    color:white;
}

@keyframes hero-fade-in{
    from{opacity:0;transform:translateY(18px)}
    to{opacity:1;transform:translateY(0)}
}

@media(max-width:768px){
    .hero{height:auto;min-height:100svh;}
    .hero-content{padding:100px 24px 60px;justify-content:center;}
    .hero-content h1{font-size:clamp(36px, 8vw, 52px);letter-spacing:-0.025em;}
    .hero-content .subtext{font-size:16px;max-width:100%;}
    .hero-content .buttons{flex-direction:column;align-items:center;width:100%;}
    .hero-content .btn-primary,
    .hero-content .btn-ghost{width:100%;max-width:280px;justify-content:center;}
}

/* =========================================================
   SECTIONS
   ========================================================= */

section{padding:96px 80px}
.container{max-width:1080px;margin:0 auto}

.s-tag{
    font-size:11px;letter-spacing:0.2em;text-transform:uppercase;
    color:#2dd4bf;margin-bottom:16px;display:block;
}

h2{
    font-size:clamp(32px,4vw,52px);
    font-weight:600;line-height:1.1;
    letter-spacing:-0.02em;
    margin-bottom:20px;
}

.section-sub{
    font-size:17px;line-height:1.7;
    color:rgba(255,255,255,0.55);
    max-width:580px;
}

.section-note{
    font-size:15px;line-height:1.75;
    color:rgba(255,255,255,0.38);
    max-width:680px;
    margin-top:16px;
    border-left:2px solid rgba(45,212,191,0.25);
    padding-left:14px;
}

/* =========================================================
   PROBLEM
   ========================================================= */

#problem{background:#0d1a2d}

.problem-grid{
    display:grid;grid-template-columns:1fr 1fr;
    gap:1px;background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:8px;overflow:hidden;
    margin:56px 0;
}

.problem-side{padding:40px 36px;background:#0d1a2d}

.problem-side h3{
    font-size:14px;font-weight:500;
    letter-spacing:0.06em;text-transform:uppercase;
    margin-bottom:28px;
}

.problem-side.chaos h3{color:rgba(255,255,255,0.35)}
.problem-side.order h3{color:#2dd4bf}

.problem-items{display:flex;flex-direction:column;gap:10px}

.problem-item{
    display:flex;align-items:center;gap:10px;
    font-size:13px;color:rgba(255,255,255,0.5);
}

.problem-item::before{
    content:"";width:4px;height:4px;border-radius:50%;flex-shrink:0;
}

.chaos .problem-item::before{background:rgba(255,255,255,0.2)}
.order .problem-item::before{background:#2dd4bf}
.order .problem-item{color:rgba(255,255,255,0.75)}

.problem-statement{
    font-size:22px;font-weight:500;
    line-height:1.4;
    border-left:2px solid #2dd4bf;
    padding-left:20px;
    margin:40px 0 0;
    max-width:640px;
    color:#f8f6f0;
}

/* =========================================================
   ARCHITECTURE
   ========================================================= */

#architecture{background:#0f1115}

.arch-stack{margin:56px 0;display:flex;flex-direction:column;gap:2px}

.arch-layer{
    display:grid;grid-template-columns:140px 1fr;
    border:1px solid rgba(255,255,255,0.06);
    border-radius:6px;overflow:hidden;
}

.arch-num{
    padding:28px 24px;
    background:#0d1a2d;
    border-right:1px solid rgba(255,255,255,0.06);
    display:flex;flex-direction:column;justify-content:center;
}

.arch-num span{
    font-size:11px;letter-spacing:0.15em;text-transform:uppercase;
    color:#5a7080;display:block;margin-bottom:4px;
}

.arch-num strong{
    font-size:20px;font-weight:500;
    color:rgba(255,255,255,0.2);
}

.arch-content{padding:28px 32px;background:#0d1a2d}
.arch-content h3{font-size:16px;font-weight:500;margin-bottom:6px}
.arch-content p{font-size:13px;color:rgba(255,255,255,0.45);margin-bottom:14px}

.arch-tags{display:flex;gap:6px;flex-wrap:wrap}

.arch-tag{
    font-size:11px;letter-spacing:0.08em;
    color:#5a7080;
    border:1px solid rgba(255,255,255,0.06);
    padding:3px 8px;border-radius:3px;
}

.arch-layer.active{border-color:rgba(45,212,191,0.15)}
.arch-layer.active .arch-content{background:rgba(45,212,191,0.03)}
.arch-layer.active .arch-tag{color:#2dd4bf;border-color:rgba(45,212,191,0.2)}

/* =========================================================
   WORKFLOW
   ========================================================= */

#workflow{background:#0d1a2d}

.workflow-bar{
    display:flex;margin:56px 0 0;
    border:1px solid rgba(255,255,255,0.06);
    border-radius:8px;overflow:hidden;
}

.workflow-phase{
    flex:1;padding:28px 20px;
    border-right:1px solid rgba(255,255,255,0.06);
    background:#0d1a2d;
    position:relative;
    transition:background .2s;
}

.workflow-phase:last-child{border-right:none}
.workflow-phase:hover{background:rgba(45,212,191,0.04)}

.wp-dot{
    width:6px;height:6px;border-radius:50%;
    background:#2dd4bf;
    position:absolute;top:20px;right:20px;
    opacity:0.5;
}

.wp-num{
    font-size:10px;letter-spacing:0.15em;text-transform:uppercase;
    color:#5a7080;margin-bottom:10px;display:block;
}

.wp-name{font-size:14px;font-weight:500;margin-bottom:6px}

.wp-detail{
    font-size:11px;
    color:rgba(255,255,255,0.35);
    line-height:1.5;
}

.workflow-statement{
    font-size:12px;letter-spacing:0.08em;
    color:#5a7080;
    margin-top:20px;
    padding:16px 20px;
    border:1px solid rgba(255,255,255,0.06);
    border-radius:6px;
    font-family:monospace;
}

/* =========================================================
   PUBLICATION
   ========================================================= */

#publication{background:#0f1115}

.etr-card{
    margin:56px 0;
    display:grid;grid-template-columns:1fr 1fr;
    gap:1px;
    border:1px solid rgba(45,212,191,0.15);
    border-radius:8px;overflow:hidden;
    background:rgba(45,212,191,0.15);
}

.etr-left{
    padding:48px 44px;
    background:rgba(45,212,191,0.04);
}

.etr-badge{
    font-size:10px;letter-spacing:0.2em;text-transform:uppercase;
    color:#2dd4bf;
    border:1px solid rgba(45,212,191,0.15);
    padding:4px 10px;border-radius:3px;
    display:inline-block;margin-bottom:20px;
    background:rgba(45,212,191,0.06);
}

.etr-left h3{
    font-size:22px;font-weight:500;
    line-height:1.3;
    margin-bottom:16px;
}

.etr-left p{
    font-size:14px;line-height:1.7;
    color:rgba(255,255,255,0.55);
    margin-bottom:24px;
}

.etr-right{
    padding:48px 44px;
    background:#0d1a2d;
    display:flex;flex-direction:column;justify-content:center;
}

.etr-meta{margin-bottom:28px}

.etr-meta .label{
    display:block;font-size:11px;letter-spacing:0.12em;text-transform:uppercase;
    color:#5a7080;margin-bottom:4px;
}

.etr-meta .value{
    display:block;font-size:12px;
    color:rgba(255,255,255,0.65);margin-bottom:16px;
}

.etr-link-card{
    font-size:13px;font-weight:500;
    color:#2dd4bf;text-decoration:none;
    letter-spacing:0.02em;
    transition:letter-spacing .15s;
}

.etr-link-card:hover{letter-spacing:0.06em}

.etr-theses{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:10px;
    margin-bottom:0;
}

.etr-theses li{
    padding-left:18px;
    position:relative;
    font-size:14px;
    line-height:1.5;
    color:rgba(255,255,255,0.65);
}

.etr-theses li::before{
    content:'→';
    position:absolute;
    left:0;
    color:#2dd4bf;
    opacity:0.7;
}

/* =========================================================
   USE CASES
   ========================================================= */

#usecases{background:#0d1a2d}

.usecase-grid{
    display:grid;
    grid-template-columns:1fr 1fr 1fr;
    gap:1px;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.06);
    border-radius:8px;overflow:hidden;
    margin:56px 0;
}

.usecase-card{
    padding:32px 28px;
    background:#0d1a2d;
    display:flex;flex-direction:column;gap:12px;
    transition:background .2s;
}

.usecase-card:hover{background:rgba(45,212,191,0.03)}

.usecase-card--open{
    border:1px solid rgba(45,212,191,0.12);
    background:rgba(45,212,191,0.02);
}

.usecase-tag{
    font-size:10px;letter-spacing:0.15em;text-transform:uppercase;
    color:#5a7080;
}

.usecase-card h3{
    font-size:15px;font-weight:500;
    color:#f8f6f0;
    line-height:1.3;
}

.usecase-card p{
    font-size:13px;line-height:1.6;
    color:rgba(255,255,255,0.45);
    flex:1;
}

.usecase-items{
    display:flex;flex-wrap:wrap;gap:6px;
    margin-top:4px;
}

.usecase-items span{
    font-size:10px;letter-spacing:0.08em;
    color:#5a7080;
    border:1px solid rgba(255,255,255,0.06);
    padding:3px 8px;border-radius:3px;
    background:rgba(255,255,255,0.02);
}

.usecase-card--open .usecase-items span{
    color:#2dd4bf;
    border-color:rgba(45,212,191,0.2);
}

/* =========================================================
   ABOUT
   ========================================================= */

#about{background:#0d1a2d}

.about-grid{
    display:grid;grid-template-columns:1fr 1fr;
    gap:48px;margin:56px 0;
}

.about-col h3{
    font-size:10px;letter-spacing:0.2em;text-transform:uppercase;
    color:#2dd4bf;margin-bottom:20px;
}

.about-item{
    padding:14px 0;
    border-bottom:1px solid rgba(255,255,255,0.06);
    font-size:13px;line-height:1.5;
    color:rgba(255,255,255,0.55);
}

.about-item:last-child{border-bottom:none}
.about-item strong{color:#f8f6f0;font-weight:500}

.disclosure{
    border:1px solid rgba(255,255,255,0.06);
    padding:20px 24px;border-radius:6px;
    background:rgba(255,255,255,0.02);
    margin-top:40px;
}

.disclosure p{
    font-size:12px;line-height:1.65;
    color:#5a7080;
    font-family:monospace;letter-spacing:0.04em;
}

/* =========================================================
   CONTACT
   ========================================================= */

#contact{
    background:#0f1115;
    text-align:center;
    padding:120px 80px;
}

#contact h2{margin-bottom:16px}
#contact .section-sub{margin:0 auto 40px;text-align:center}

.contact-actions{
    display:flex;gap:12px;justify-content:center;margin-bottom:56px;flex-wrap:wrap;
}

.btn-primary-lg{
    display:inline-flex;align-items:center;gap:8px;
    font-size:14px;font-weight:500;
    color:#0f1115;
    background:#2dd4bf;
    padding:12px 24px;border-radius:6px;
    text-decoration:none;
    transition:background .15s;
}

.btn-primary-lg:hover{background:#5eead4}

.btn-outline-lg{
    display:inline-flex;align-items:center;gap:8px;
    font-size:14px;
    color:white;
    border:1px solid rgba(255,255,255,0.18);
    padding:12px 24px;border-radius:6px;
    text-decoration:none;
    transition:border-color .15s;
}

.btn-outline-lg:hover{border-color:rgba(255,255,255,0.35)}

.ps{
    max-width:480px;margin:0 auto;
    border-top:1px solid rgba(255,255,255,0.06);
    padding-top:32px;
}

.ps p{
    font-size:13px;line-height:1.7;
    color:#5a7080;font-style:italic;
}

.ps strong{color:rgba(255,255,255,0.55);font-style:normal}

/* =========================================================
   FOOTER
   ========================================================= */

footer{
    background:rgba(5,10,18,0.9);
    border-top:1px solid rgba(255,255,255,0.06);
    padding:28px 80px;
    display:flex;align-items:center;
    justify-content:space-between;flex-wrap:wrap;gap:16px;
}

.foot-left{display:flex;align-items:center;gap:24px}

.foot-logo{
    font-size:13px;font-weight:500;
    color:rgba(255,255,255,0.4);
    text-decoration:none;
}

.foot-links{display:flex;gap:20px;list-style:none}

.foot-links a{
    font-size:12px;color:#5a7080;
    text-decoration:none;transition:color .15s;
}

.foot-links a:hover{color:rgba(255,255,255,0.6)}

.foot-right{
    font-size:11px;letter-spacing:0.1em;
    color:rgba(255,255,255,0.2);
}
