
/* =========================================================
   APPLICATION SECURITY PAGE
   Cybersecurity Life
   ========================================================= */

.application-security-page {
    --app-bg: #030914;
    --app-panel: rgba(7, 20, 37, 0.88);
    --app-panel-soft: rgba(10, 29, 51, 0.74);
    --app-blue: #00bfff;
    --app-cyan: #55e8ff;
    --app-green: #45ffb0;
    --app-purple: #8d7dff;
    --app-warning: #ffc857;
    --app-danger: #ff647c;
    --app-text: #f5fbff;
    --app-muted: #a9bfd0;
    --app-border: rgba(74, 219, 255, 0.22);
    --app-shadow: 0 0 30px rgba(0, 191, 255, 0.13);
    position: relative;
    overflow: hidden;
    color: var(--app-text);
    background:
        radial-gradient(circle at 10% 10%, rgba(0, 191, 255, 0.12), transparent 28%),
        radial-gradient(circle at 90% 18%, rgba(69, 255, 176, 0.08), transparent 25%),
        radial-gradient(circle at 50% 72%, rgba(141, 125, 255, 0.07), transparent 30%),
        linear-gradient(180deg, #020711 0%, #06101d 50%, #020811 100%);
    isolation: isolate;
}

.application-security-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(0, 191, 255, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 191, 255, 0.055) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,.96), transparent 98%);
    animation: appGridDrift 18s linear infinite;
}

.application-security-page::after {
    content: "";
    position: fixed;
    inset: -45%;
    z-index: -3;
    pointer-events: none;
    background:
        repeating-linear-gradient(
            120deg,
            transparent 0,
            transparent 84px,
            rgba(0,191,255,.025) 85px,
            transparent 86px
        );
    animation: appBackgroundSweep 26s linear infinite;
}

.application-security-page *,
.application-security-page *::before,
.application-security-page *::after {
    box-sizing: border-box;
}

.application-security-page a {
    text-decoration: none;
}

.appsec-section,
.appsec-hero,
.appsec-final-callout,
.appsec-summary-strip {
    position: relative;
    z-index: 1;
}

.appsec-section {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 98px 0;
}

.appsec-section + .appsec-section {
    border-top: 1px solid rgba(74, 219, 255, 0.08);
}

/* ---------- SHARED HEADINGS ---------- */

.section-heading {
    max-width: 820px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-label,
.appsec-eyebrow {
    margin: 0 0 12px;
    color: var(--app-green);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.section-heading h2,
.devsecops-text h2,
.final-callout-content h2 {
    margin: 0 0 18px;
    font-size: clamp(2.1rem, 4.5vw, 3.5rem);
    line-height: 1.08;
    letter-spacing: -.04em;
}

.section-heading h2 span,
.devsecops-text h2 span,
.final-callout-content h2 span {
    color: transparent;
    background: linear-gradient(90deg, #7fe8ff, #64ffc1);
    -webkit-background-clip: text;
    background-clip: text;
}

.section-heading > p:last-child,
.devsecops-text > p,
.final-callout-content > p {
    color: var(--app-muted);
    font-size: 1.03rem;
    line-height: 1.8;
}

/* ---------- HERO ---------- */

.appsec-hero {
    min-height: 790px;
    padding: 112px max(28px, calc((100vw - 1180px) / 2)) 86px;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    align-items: center;
    gap: 64px;
    overflow: hidden;
}

.appsec-hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--app-blue), var(--app-green), transparent);
    box-shadow: 0 0 26px rgba(0,191,255,.7);
}

.appsec-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(69,255,176,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,191,255,.07) 1px, transparent 1px);
    background-size: 54px 54px;
    transform: perspective(680px) rotateX(65deg) scale(1.55) translateY(27%);
    transform-origin: bottom;
    opacity: .72;
    animation: appHeroGrid 12s linear infinite;
}

.appsec-hero-content {
    position: relative;
    z-index: 2;
    max-width: 720px;
    animation: appFadeUp .9s ease both;
}

.appsec-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    padding: 10px 16px;
    border: 1px solid rgba(69,255,176,.34);
    border-radius: 999px;
    color: #caffea;
    background: rgba(4,31,30,.72);
    box-shadow:
        inset 0 0 18px rgba(69,255,176,.05),
        0 0 20px rgba(69,255,176,.1);
    font-size: .74rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--app-green);
    box-shadow: 0 0 0 0 rgba(69,255,176,.7);
    animation: appStatusPulse 1.8s ease-out infinite;
}

.appsec-hero h1 {
    margin: 0;
    font-size: clamp(3.5rem, 8vw, 7rem);
    line-height: .94;
    letter-spacing: -.065em;
    text-transform: uppercase;
}

.appsec-hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(104,229,255,.88);
    text-shadow:
        0 0 14px rgba(0,191,255,.26),
        0 0 44px rgba(0,191,255,.16);
}

.appsec-hero-description {
    max-width: 700px;
    margin: 28px 0 0;
    color: #b5c9d7;
    font-size: clamp(1rem, 1.8vw, 1.17rem);
    line-height: 1.82;
}

.appsec-hero-buttons,
.final-callout-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 34px;
}

.appsec-primary-btn,
.appsec-secondary-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: 800;
    letter-spacing: .025em;
    overflow: hidden;
    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease,
        color .25s ease;
}

.appsec-primary-btn {
    color: #00131b;
    background: linear-gradient(135deg, var(--app-cyan), var(--app-green));
    box-shadow: 0 0 24px rgba(0,191,255,.25);
}

.appsec-primary-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-120%);
    background: linear-gradient(110deg, transparent 25%, rgba(255,255,255,.55), transparent 70%);
    transition: transform .55s ease;
}

.appsec-primary-btn:hover::before {
    transform: translateX(120%);
}

.appsec-secondary-btn {
    color: #d2f7ff;
    border: 1px solid rgba(73,218,255,.45);
    background: rgba(2,14,27,.68);
}

.appsec-primary-btn:hover,
.appsec-secondary-btn:hover {
    transform: translateY(-3px);
}

.appsec-primary-btn:hover {
    box-shadow: 0 0 34px rgba(0,191,255,.38);
}

.appsec-secondary-btn:hover {
    color: white;
    border-color: var(--app-green);
    box-shadow: 0 0 24px rgba(69,255,176,.14);
}

.appsec-hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 34px;
}

.hero-stat-card {
    padding: 16px;
    border: 1px solid rgba(74,219,255,.15);
    border-radius: 10px;
    background: rgba(4,15,28,.58);
}

.hero-stat-number {
    display: block;
    color: var(--app-green);
    font-size: .7rem;
    font-weight: 900;
}

.hero-stat-label {
    display: block;
    margin-top: 6px;
    color: #d5f4ff;
    font-size: .78rem;
}

/* ---------- HERO CODE WINDOW ---------- */

.appsec-visual {
    position: relative;
    z-index: 2;
    min-height: 520px;
    display: grid;
    place-items: center;
    animation: appFadeIn 1.15s ease both .15s;
}

.appsec-visual::before,
.appsec-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.appsec-visual::before {
    width: 500px;
    height: 500px;
    border: 1px dashed rgba(0,191,255,.27);
    animation: appSpin 24s linear infinite;
}

.appsec-visual::after {
    width: 350px;
    height: 350px;
    border: 1px solid rgba(69,255,176,.2);
    animation: appSpinReverse 16s linear infinite;
}

.application-window {
    position: relative;
    z-index: 4;
    width: min(500px, 92vw);
    border: 1px solid rgba(72,220,255,.34);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(11,34,57,.96), rgba(3,13,25,.98));
    box-shadow:
        0 0 34px rgba(0,191,255,.2),
        0 24px 50px rgba(0,0,0,.34);
    overflow: visible;
    animation: appWindowFloat 4.6s ease-in-out infinite;
}

.application-window-header,
.coding-console-header,
.api-panel-header {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 16px;
    border-bottom: 1px solid rgba(74,219,255,.12);
    background: rgba(0,0,0,.22);
}

.window-control,
.console-controls span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.control-red,
.console-controls span:nth-child(1) { background: #ff647c; }
.control-yellow,
.console-controls span:nth-child(2) { background: #ffc857; }
.control-green,
.console-controls span:nth-child(3) { background: #45ffb0; }

.window-title {
    margin-left: 8px;
    color: #9fb9c9;
    font-size: .75rem;
}

.application-window-body {
    position: relative;
    min-height: 330px;
    padding: 28px;
    font-family: Consolas, Monaco, monospace;
    background:
        linear-gradient(rgba(0,191,255,.025) 1px, transparent 1px),
        #030a12;
    background-size: 100% 29px;
}

.code-line,
.console-code-row,
.api-code-line {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 18px;
    color: #c7dce7;
    opacity: 0;
    transform: translateX(-10px);
    animation: appCodeReveal .55s ease forwards;
}

.code-line:nth-child(1) { animation-delay: .25s; }
.code-line:nth-child(2) { animation-delay: .75s; }
.code-line:nth-child(3) { animation-delay: 1.25s; }
.code-line:nth-child(4) { animation-delay: 1.75s; }

.line-number,
.console-line {
    min-width: 24px;
    color: #5e8398;
}

.code-keyword,
.code-blue {
    color: var(--app-purple);
}

.code-function,
.code-green {
    color: var(--app-green);
}

.code-indent {
    width: 18px;
}

.security-scan-bar {
    position: relative;
    height: 10px;
    margin-top: 30px;
    border: 1px solid rgba(0,191,255,.22);
    border-radius: 999px;
    background: rgba(0,0,0,.34);
    overflow: hidden;
}

.security-scan-progress {
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--app-blue), var(--app-green));
    box-shadow: 0 0 14px rgba(0,191,255,.5);
    animation: appScanProgress 3s ease-in-out infinite;
}

.scan-result {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    color: #d9ffef;
    font-size: .83rem;
}

.scan-check,
.console-security-output .output-symbol,
.api-check span {
    color: var(--app-green);
    text-shadow: 0 0 10px rgba(69,255,176,.48);
}

.application-shield {
    position: absolute;
    right: -34px;
    bottom: -36px;
    width: 112px;
    height: 130px;
    display: grid;
    place-items: center;
    clip-path: polygon(50% 0, 92% 18%, 85% 76%, 50% 100%, 15% 76%, 8% 18%);
    background:
        linear-gradient(145deg, rgba(69,255,176,.95), rgba(0,191,255,.92));
    box-shadow: 0 0 26px rgba(69,255,176,.35);
    animation: appShieldPulse 2.8s ease-in-out infinite;
}

.shield-lock {
    position: relative;
    width: 46px;
    height: 54px;
}

.lock-shackle {
    position: absolute;
    left: 10px;
    top: 0;
    width: 26px;
    height: 24px;
    border: 5px solid #03201a;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
}

.lock-body {
    position: absolute;
    left: 4px;
    bottom: 0;
    width: 38px;
    height: 34px;
    border-radius: 7px;
    background: #03201a;
}

.floating-security-tag {
    position: absolute;
    z-index: 6;
    padding: 9px 12px;
    border: 1px solid rgba(69,255,176,.3);
    border-radius: 999px;
    color: #caffea;
    background: rgba(3,22,24,.86);
    box-shadow: 0 0 18px rgba(69,255,176,.1);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .08em;
    animation: appTagFloat 4s ease-in-out infinite;
}

.tag-one { top: 9%; left: -2%; }
.tag-two { right: -2%; top: 40%; animation-delay: -1.3s; }
.tag-three { left: 8%; bottom: 8%; animation-delay: -2.6s; }

/* ---------- SUMMARY STRIP ---------- */

.appsec-summary-strip {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--app-border);
    border-radius: 16px;
    background: rgba(6,18,33,.82);
    box-shadow: var(--app-shadow);
    overflow: hidden;
}

.summary-strip-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 24px;
    border-right: 1px solid rgba(74,219,255,.1);
}

.summary-strip-item:last-child {
    border-right: 0;
}

.summary-icon {
    font-size: 1.7rem;
    color: var(--app-green);
    filter: drop-shadow(0 0 10px rgba(69,255,176,.4));
}

.summary-strip-item h3 {
    margin: 0 0 6px;
    font-size: 1rem;
}

.summary-strip-item p {
    margin: 0;
    color: var(--app-muted);
    font-size: .82rem;
    line-height: 1.5;
}

/* ---------- SHARED CARDS ---------- */

.appsec-intro-card,
.surface-card,
.risk-card,
.step-content,
.coding-console,
.coding-practice-item,
.identity-card,
.testing-card,
.api-request-panel,
.api-practice-card,
.application-type-card,
.checklist-item,
.career-card {
    border: 1px solid var(--app-border);
    background:
        linear-gradient(145deg, rgba(11,31,53,.84), rgba(4,14,27,.92));
    box-shadow: var(--app-shadow);
    backdrop-filter: blur(10px);
}

.appsec-intro-card,
.surface-card,
.risk-card,
.coding-practice-item,
.identity-card,
.testing-card,
.api-practice-card,
.application-type-card,
.checklist-item,
.career-card {
    transition:
        transform .28s ease,
        border-color .28s ease,
        box-shadow .28s ease,
        background .28s ease;
}

.appsec-intro-card:hover,
.surface-card:hover,
.risk-card:hover,
.coding-practice-item:hover,
.identity-card:hover,
.testing-card:hover,
.api-practice-card:hover,
.application-type-card:hover,
.checklist-item:hover,
.career-card:hover {
    transform: translateY(-7px);
    border-color: rgba(69,255,176,.48);
    background:
        linear-gradient(145deg, rgba(12,41,64,.94), rgba(4,17,32,.96));
    box-shadow:
        0 0 34px rgba(0,191,255,.15),
        0 14px 38px rgba(0,0,0,.28);
}

/* ---------- INTRO ---------- */

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

.appsec-intro-card {
    position: relative;
    min-height: 330px;
    padding: 32px;
    border-radius: 16px;
    overflow: hidden;
}

.intro-featured {
    border-color: rgba(69,255,176,.4);
}

.card-number,
.surface-card-number,
.risk-number,
.api-practice-number,
.career-number {
    position: absolute;
    right: 18px;
    top: 14px;
    color: rgba(92,222,255,.22);
    font-size: 2.4rem;
    font-weight: 900;
}

.intro-card-icon {
    font-size: 2.3rem;
    color: var(--app-cyan);
    filter: drop-shadow(0 0 10px rgba(0,191,255,.38));
}

.appsec-intro-card h3,
.surface-card h3,
.risk-card h3,
.coding-practice-item h3,
.identity-card h3,
.testing-card h3,
.api-practice-card h3,
.application-type-card h3,
.checklist-item h3,
.career-card h3 {
    margin: 20px 0 10px;
    font-size: 1.2rem;
}

.appsec-intro-card p,
.surface-card p,
.risk-card p,
.coding-practice-item p,
.identity-card p,
.testing-card p,
.api-practice-card p,
.application-type-card p,
.checklist-item p,
.career-card p {
    margin: 0;
    color: var(--app-muted);
    line-height: 1.72;
}

.card-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    color: var(--app-green);
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.card-status span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--app-green);
    box-shadow: 0 0 10px var(--app-green);
}

/* ---------- ATTACK SURFACE ---------- */

.attack-surface-section {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    padding-right: max(20px, calc((100vw - 1180px) / 2));
    background:
        radial-gradient(circle at 25% 50%, rgba(141,125,255,.08), transparent 32%);
}

.attack-surface-layout {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    align-items: center;
    gap: 55px;
}

.attack-surface-center {
    display: grid;
    place-items: center;
    min-height: 480px;
}

.surface-core {
    position: relative;
    width: 330px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
}

.surface-core::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px dashed rgba(0,191,255,.3);
    border-radius: 50%;
    animation: appSpin 20s linear infinite;
}

.surface-core-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(69,255,176,.22);
}

.surface-core-ring.ring-one {
    inset: 8%;
    border-style: dashed;
    animation: appSpinReverse 15s linear infinite;
}

.surface-core-ring.ring-two {
    inset: 22%;
    animation: appSpin 11s linear infinite;
}

.surface-core-ring.ring-three {
    inset: 36%;
    border-style: dotted;
    animation: appSpinReverse 8s linear infinite;
}

.surface-core-content {
    position: relative;
    z-index: 3;
    width: 145px;
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(69,255,176,.45);
    border-radius: 50%;
    background: rgba(4,16,29,.95);
    box-shadow:
        0 0 30px rgba(69,255,176,.15),
        inset 0 0 28px rgba(0,191,255,.07);
    animation: appCorePulse 3s ease-in-out infinite;
}

.surface-core-icon {
    color: var(--app-green);
    font-size: 2.1rem;
    font-weight: 900;
}

.surface-core-content strong {
    margin-top: 6px;
    font-size: .78rem;
}

.surface-core-content small {
    margin-top: 4px;
    color: var(--app-muted);
    font-size: .58rem;
}

.attack-surface-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.surface-card {
    position: relative;
    min-height: 190px;
    padding: 25px;
    border-radius: 14px;
}

/* ---------- RISKS ---------- */

.risks-section {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    padding-right: max(20px, calc((100vw - 1180px) / 2));
    background:
        linear-gradient(180deg, rgba(255,100,124,.02), transparent 40%);
}

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

.risk-card {
    position: relative;
    min-height: 335px;
    padding: 28px;
    border-radius: 15px;
    overflow: hidden;
}

.risk-card-header {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.risk-level {
    padding: 6px 9px;
    border: 1px solid rgba(255,100,124,.34);
    border-radius: 999px;
    color: #ff9eae;
    background: rgba(255,100,124,.06);
    font-size: .62rem;
    font-weight: 900;
}

.risk-icon {
    margin-top: 24px;
    color: var(--app-cyan);
    font-size: 2rem;
    filter: drop-shadow(0 0 10px rgba(0,191,255,.36));
}

.risk-defense {
    margin-top: 22px;
    padding: 12px;
    border-left: 3px solid var(--app-green);
    border-radius: 0 8px 8px 0;
    color: #ccefe0;
    background: rgba(69,255,176,.055);
    font-size: .82rem;
    line-height: 1.5;
}

/* ---------- DEVELOPMENT TIMELINE ---------- */

.development-timeline {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
}

.development-timeline::before {
    content: "";
    position: absolute;
    left: 37px;
    top: 28px;
    bottom: 28px;
    width: 2px;
    background: linear-gradient(var(--app-blue), var(--app-green), var(--app-purple));
    box-shadow: 0 0 14px rgba(0,191,255,.45);
}

.development-step {
    display: grid;
    grid-template-columns: 76px 1fr;
    gap: 22px;
    align-items: center;
}

.development-step:nth-child(even) {
    transform: translateX(34px);
}

.step-marker {
    position: relative;
    z-index: 2;
    width: 50px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(69,255,176,.45);
    border-radius: 50%;
    color: var(--app-green);
    background: #06111f;
    box-shadow: 0 0 20px rgba(69,255,176,.12);
    font-weight: 900;
}

.step-content {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    padding: 24px;
    border-radius: 14px;
}

.step-icon {
    color: var(--app-cyan);
    font-size: 1.7rem;
}

.step-content h3 {
    margin: 0 0 8px;
}

.step-content p {
    margin: 0;
    color: var(--app-muted);
    line-height: 1.7;
}

/* ---------- CODING PRACTICES ---------- */

.coding-practices-section {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    padding-right: max(20px, calc((100vw - 1180px) / 2));
    background:
        radial-gradient(circle at 18% 50%, rgba(0,191,255,.07), transparent 30%);
}

.coding-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.coding-console {
    border-radius: 16px;
    overflow: hidden;
}

.coding-console-header {
    justify-content: space-between;
}

.console-controls {
    display: flex;
    gap: 8px;
}

.coding-console-header p {
    color: #9eb6c7;
    font-size: .78rem;
}

.console-status {
    color: var(--app-green);
    font-size: .7rem;
    font-weight: 900;
}

.coding-console-body {
    padding: 26px;
    font-family: Consolas, Monaco, monospace;
    background:
        linear-gradient(rgba(0,191,255,.025) 1px, transparent 1px),
        #030a12;
    background-size: 100% 29px;
}

.console-code-row:nth-child(1) { animation-delay: .25s; }
.console-code-row:nth-child(2) { animation-delay: .75s; }
.console-code-row:nth-child(3) { animation-delay: 1.25s; }
.console-code-row:nth-child(4) { animation-delay: 1.75s; }
.console-code-row:nth-child(5) { animation-delay: 2.25s; }

.console-security-output {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    padding: 15px;
    border: 1px solid rgba(69,255,176,.2);
    border-radius: 10px;
    background: rgba(69,255,176,.05);
}

.console-security-output strong,
.console-security-output small {
    display: block;
}

.console-security-output small {
    margin-top: 4px;
    color: var(--app-muted);
}

.coding-practice-list {
    display: grid;
    gap: 15px;
}

.coding-practice-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
}

.practice-number {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border: 1px solid rgba(69,255,176,.34);
    border-radius: 50%;
    color: var(--app-green);
    font-weight: 900;
}

.coding-practice-item h3 {
    margin-top: 0;
}

/* ---------- IDENTITY ---------- */

.identity-comparison {
    display: grid;
    grid-template-columns: 1fr 130px 1fr;
    align-items: center;
    gap: 20px;
}

.identity-card {
    min-height: 470px;
    padding: 30px;
    border-radius: 17px;
}

.identity-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.identity-label,
.testing-type {
    color: var(--app-green);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .1em;
}

.identity-icon {
    font-size: 2rem;
}

.identity-card ul,
.testing-card ul {
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.identity-card li,
.testing-card li {
    position: relative;
    padding-left: 24px;
    color: var(--app-muted);
}

.identity-card li::before,
.testing-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--app-green);
    font-weight: 900;
}

.identity-example {
    margin-top: 26px;
    padding: 15px;
    border: 1px solid rgba(74,219,255,.12);
    border-radius: 9px;
    background: rgba(0,0,0,.14);
}

.identity-example strong,
.identity-example span {
    display: block;
}

.identity-example strong {
    color: var(--app-green);
    font-size: .7rem;
}

.identity-example span {
    margin-top: 6px;
    color: #d0e7f1;
}

.identity-link {
    display: grid;
    grid-template-rows: 1fr auto 1fr;
    place-items: center;
    gap: 10px;
}

.identity-link span {
    width: 2px;
    height: 80px;
    background: linear-gradient(var(--app-blue), var(--app-green));
}

.identity-link div {
    width: 48px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid rgba(69,255,176,.4);
    border-radius: 50%;
    color: var(--app-green);
    background: #06111f;
    animation: appCorePulse 3s ease-in-out infinite;
}

/* ---------- TESTING ---------- */

.testing-section {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    padding-right: max(20px, calc((100vw - 1180px) / 2));
    background:
        linear-gradient(180deg, rgba(0,191,255,.025), rgba(69,255,176,.02));
}

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

.testing-card {
    min-height: 390px;
    padding: 28px;
    border-radius: 15px;
}

.testing-card-icon {
    width: 54px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    margin-bottom: 18px;
    border: 1px solid rgba(69,255,176,.34);
    border-radius: 14px;
    color: var(--app-green);
    background: rgba(69,255,176,.05);
    font-size: 1.4rem;
    font-weight: 900;
}

/* ---------- API SECURITY ---------- */

.api-security-layout {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 50px;
    align-items: start;
}

.api-request-panel {
    border-radius: 16px;
    overflow: hidden;
}

.request-method {
    padding: 6px 9px;
    border-radius: 6px;
    color: #00170f;
    background: var(--app-green);
    font-size: .68rem;
    font-weight: 900;
}

.request-address {
    color: #cbeeff;
    font-family: Consolas, Monaco, monospace;
    font-size: .8rem;
}

.api-request-body {
    padding: 24px;
    background: #030a12;
    font-family: Consolas, Monaco, monospace;
}

.api-code-line {
    animation: appCodeReveal .55s ease forwards;
}

.api-code-line:nth-child(1) { animation-delay: .3s; }
.api-code-line:nth-child(2) { animation-delay: .9s; }
.api-code-line:nth-child(3) { animation-delay: 1.5s; }

.api-code-line span {
    color: var(--app-cyan);
}

.api-code-line strong {
    color: var(--app-green);
}

.api-security-checks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px;
}

.api-check {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px;
    border: 1px solid rgba(69,255,176,.14);
    border-radius: 8px;
    color: #ccefe0;
    background: rgba(69,255,176,.04);
    font-size: .8rem;
}

.api-practices {
    display: grid;
    gap: 15px;
}

.api-practice-card {
    position: relative;
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
}

.api-practice-number {
    position: static;
    min-width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(69,255,176,.3);
    border-radius: 50%;
    color: var(--app-green);
    font-size: .7rem;
}

.api-practice-card h3 {
    margin-top: 0;
}

/* ---------- APPLICATION TYPES ---------- */

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

.application-type-card {
    min-height: 440px;
    padding: 28px;
    border-radius: 16px;
}

.type-card-visual {
    position: relative;
    min-height: 170px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(74,219,255,.17);
    border-radius: 14px;
    background:
        radial-gradient(circle, rgba(0,191,255,.1), transparent 68%),
        rgba(0,0,0,.14);
    overflow: hidden;
}

.type-browser-bar {
    position: absolute;
    inset: 0 0 auto;
    height: 28px;
    border-bottom: 1px solid rgba(74,219,255,.14);
    background: rgba(0,0,0,.22);
}

.type-browser-content {
    color: var(--app-cyan);
    font-size: 2.8rem;
    font-weight: 900;
    animation: appIconFloat 3.5s ease-in-out infinite;
}

.mobile-visual {
    width: 130px;
    margin: 0 auto;
    border-radius: 22px;
}

.mobile-speaker,
.mobile-home {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(200,240,255,.55);
}

.mobile-speaker {
    top: 14px;
    width: 34px;
    height: 4px;
    border-radius: 999px;
}

.mobile-home {
    bottom: 12px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
}

.mobile-shield {
    width: 58px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #00170f;
    background: var(--app-green);
    box-shadow: 0 0 20px rgba(69,255,176,.26);
    font-size: 1.4rem;
    font-weight: 900;
    animation: appShieldPulse 2.8s ease-in-out infinite;
}

.cloud-symbol {
    font-size: 4.5rem;
    color: var(--app-cyan);
    text-shadow: 0 0 20px rgba(0,191,255,.45);
    animation: appIconFloat 3.6s ease-in-out infinite;
}

.cloud-lock {
    position: absolute;
    font-size: 2rem;
    filter: drop-shadow(0 0 12px rgba(69,255,176,.5));
}

.type-focus {
    margin-top: 22px;
    padding: 13px;
    border: 1px solid rgba(74,219,255,.12);
    border-radius: 9px;
    color: #cbeeff;
    background: rgba(0,0,0,.14);
    font-size: .82rem;
}

.type-focus span {
    display: block;
    margin-bottom: 5px;
    color: var(--app-green);
    font-size: .68rem;
    font-weight: 900;
}

/* ---------- DEVSECOPS ---------- */

.devsecops-section {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    padding-right: max(20px, calc((100vw - 1180px) / 2));
    background:
        radial-gradient(circle at 75% 50%, rgba(141,125,255,.08), transparent 32%);
}

.devsecops-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 55px;
    align-items: center;
}

.devsecops-benefits {
    display: grid;
    gap: 12px;
    margin-top: 25px;
}

.devsecops-benefit {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(74,219,255,.1);
    border-radius: 8px;
    background: rgba(0,0,0,.12);
}

.devsecops-benefit span {
    color: var(--app-green);
    font-weight: 900;
}

.devsecops-benefit p {
    margin: 0;
    color: var(--app-muted);
}

.devsecops-cycle {
    position: relative;
    width: min(470px, 90vw);
    aspect-ratio: 1;
    margin: 0 auto;
    border-radius: 50%;
}

.devsecops-cycle::before,
.devsecops-cycle::after {
    content: "";
    position: absolute;
    border-radius: 50%;
}

.devsecops-cycle::before {
    inset: 4%;
    border: 1px dashed rgba(0,191,255,.28);
    animation: appSpin 22s linear infinite;
}

.devsecops-cycle::after {
    inset: 18%;
    border: 1px solid rgba(69,255,176,.2);
    animation: appSpinReverse 14s linear infinite;
}

.cycle-center {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 4;
    width: 145px;
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
    display: grid;
    place-content: center;
    text-align: center;
    border: 1px solid rgba(69,255,176,.42);
    border-radius: 50%;
    background: #06111f;
    box-shadow: 0 0 30px rgba(69,255,176,.14);
    animation: appCorePulse 3s ease-in-out infinite;
}

.cycle-center span {
    color: var(--app-green);
    font-size: 2.6rem;
}

.cycle-center strong {
    font-size: .78rem;
}

.cycle-node {
    position: absolute;
    z-index: 5;
    min-width: 88px;
    padding: 10px;
    border: 1px solid rgba(74,219,255,.28);
    border-radius: 10px;
    background: rgba(4,16,29,.94);
    box-shadow: 0 0 18px rgba(0,191,255,.09);
    text-align: center;
    animation: appTagFloat 4s ease-in-out infinite;
}

.cycle-node span {
    display: block;
    color: var(--app-green);
    font-size: .65rem;
}

.cycle-node strong {
    font-size: .72rem;
}

.cycle-plan { top: 0; left: 50%; transform: translateX(-50%); }
.cycle-code { right: 2%; top: 25%; animation-delay: -.6s; }
.cycle-build { right: 8%; bottom: 14%; animation-delay: -1.2s; }
.cycle-test { bottom: 0; left: 50%; transform: translateX(-50%); animation-delay: -1.8s; }
.cycle-release { left: 8%; bottom: 14%; animation-delay: -2.4s; }
.cycle-monitor { left: 2%; top: 25%; animation-delay: -3s; }

/* ---------- CHECKLIST ---------- */

.checklist-section {
    width: 100%;
    max-width: none;
    padding-left: max(20px, calc((100vw - 1180px) / 2));
    padding-right: max(20px, calc((100vw - 1180px) / 2));
    background:
        radial-gradient(circle at 12% 50%, rgba(69,255,176,.06), transparent 30%);
}

.appsec-checklist {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.checklist-column {
    display: grid;
    gap: 16px;
}

.checklist-item {
    display: flex;
    gap: 16px;
    padding: 20px;
    border-radius: 12px;
}

.checklist-check {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    color: #00170f;
    background: var(--app-green);
    box-shadow: 0 0 18px rgba(69,255,176,.25);
    font-weight: 900;
}

.checklist-item h3 {
    margin-top: 0;
}

/* ---------- CAREERS ---------- */

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

.career-card {
    position: relative;
    min-height: 240px;
    padding: 27px;
    border-radius: 15px;
}

/* ---------- FINAL CALLOUT ---------- */

.appsec-final-callout {
    min-height: 520px;
    padding: 112px max(24px, calc((100vw - 950px) / 2));
    display: grid;
    place-items: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 50%, rgba(0,191,255,.12), transparent 38%),
        linear-gradient(180deg, rgba(4,13,25,.8), #02070f);
}

.final-callout-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(69,255,176,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0,191,255,.055) 1px, transparent 1px);
    background-size: 38px 38px;
    transform: perspective(700px) rotateX(67deg) scale(1.6) translateY(31%);
    transform-origin: bottom;
    animation: appHeroGrid 12s linear infinite;
}

.appsec-final-callout::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 460px;
    height: 460px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(66,220,255,.13);
    border-radius: 50%;
    box-shadow:
        0 0 60px rgba(0,191,255,.08),
        inset 0 0 60px rgba(69,255,176,.03);
    animation: appCalloutRing 7s ease-in-out infinite;
}

.final-callout-content {
    position: relative;
    z-index: 2;
    max-width: 860px;
}

.final-callout-icon {
    width: 90px;
    aspect-ratio: 1;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(69,255,176,.4);
    border-radius: 50%;
    color: var(--app-green);
    background: rgba(69,255,176,.06);
    box-shadow: 0 0 24px rgba(69,255,176,.12);
    font-size: 1.5rem;
    font-weight: 900;
    animation: appCorePulse 3s ease-in-out infinite;
}

.final-callout-actions {
    justify-content: center;
}

/* ---------- ANIMATIONS ---------- */

@keyframes appGridDrift {
    from { background-position: 0 0, 0 0; }
    to { background-position: 44px 44px, 44px 44px; }
}

@keyframes appBackgroundSweep {
    from { transform: translate3d(-7%, -7%, 0) rotate(0deg); }
    to { transform: translate3d(7%, 7%, 0) rotate(3deg); }
}

@keyframes appHeroGrid {
    from { background-position: 0 0, 0 0; }
    to { background-position: 0 54px, 54px 0; }
}

@keyframes appStatusPulse {
    0% { box-shadow: 0 0 0 0 rgba(69,255,176,.7); }
    70% { box-shadow: 0 0 0 10px rgba(69,255,176,0); }
    100% { box-shadow: 0 0 0 0 rgba(69,255,176,0); }
}

@keyframes appFadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes appFadeIn {
    from { opacity: 0; transform: scale(.94); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes appSpin {
    to { transform: rotate(360deg); }
}

@keyframes appSpinReverse {
    to { transform: rotate(-360deg); }
}

@keyframes appWindowFloat {
    0%,100% { transform: translateY(0) rotate(-.5deg); }
    50% { transform: translateY(-16px) rotate(.5deg); }
}

@keyframes appCodeReveal {
    to { opacity: 1; transform: translateX(0); }
}

@keyframes appScanProgress {
    0% { width: 0; }
    65%, 90% { width: 100%; }
    100% { width: 0; }
}

@keyframes appShieldPulse {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}

@keyframes appTagFloat {
    0%,100% { margin-top: 0; }
    50% { margin-top: -9px; }
}

@keyframes appCorePulse {
    0%,100% {
        transform: scale(.98);
        box-shadow:
            0 0 22px rgba(69,255,176,.1),
            inset 0 0 28px rgba(0,191,255,.05);
    }
    50% {
        transform: scale(1.05);
        box-shadow:
            0 0 36px rgba(69,255,176,.22),
            inset 0 0 35px rgba(0,191,255,.1);
    }
}

@keyframes appIconFloat {
    0%,100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes appCalloutRing {
    0%,100% {
        transform: translate(-50%, -50%) scale(.94);
        opacity: .45;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.08);
        opacity: .9;
    }
}

/* ---------- RESPONSIVE ---------- */

@media (max-width: 1100px) {
    .appsec-hero {
        grid-template-columns: 1fr;
        padding-top: 92px;
        text-align: center;
    }

    .appsec-hero-content {
        margin: 0 auto;
    }

    .appsec-hero-buttons {
        justify-content: center;
    }

    .appsec-hero-stats {
        max-width: 650px;
        margin-left: auto;
        margin-right: auto;
    }

    .risk-grid,
    .testing-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .attack-surface-layout,
    .coding-layout,
    .api-security-layout,
    .devsecops-content {
        grid-template-columns: 1fr;
    }

    .attack-surface-center {
        min-height: 390px;
    }
}

@media (max-width: 900px) {
    .appsec-summary-strip {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-strip-item:nth-child(2) {
        border-right: 0;
    }

    .summary-strip-item:nth-child(-n+2) {
        border-bottom: 1px solid rgba(74,219,255,.1);
    }

    .appsec-introduction-grid,
    .application-type-grid,
    .career-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .identity-comparison {
        grid-template-columns: 1fr;
    }

    .identity-link {
        grid-template-columns: 1fr auto 1fr;
        grid-template-rows: none;
    }

    .identity-link span {
        width: 100%;
        height: 2px;
    }
}

@media (max-width: 760px) {
    .appsec-section {
        width: min(100% - 28px, 1180px);
        padding: 76px 0;
    }

    .appsec-hero {
        min-height: auto;
        padding: 78px 18px 65px;
        gap: 34px;
    }

    .appsec-hero h1 {
        font-size: clamp(3rem, 16vw, 5rem);
    }

    .appsec-hero-buttons,
    .final-callout-actions {
        flex-direction: column;
    }

    .appsec-primary-btn,
    .appsec-secondary-btn {
        width: 100%;
    }

    .appsec-hero-stats {
        grid-template-columns: 1fr;
    }

    .appsec-visual {
        min-height: 430px;
    }

    .appsec-visual::before {
        width: 390px;
        height: 390px;
    }

    .appsec-visual::after {
        width: 275px;
        height: 275px;
    }

    .floating-security-tag {
        font-size: .57rem;
    }

    .appsec-introduction-grid,
    .attack-surface-cards,
    .risk-grid,
    .testing-grid,
    .application-type-grid,
    .career-grid,
    .appsec-checklist {
        grid-template-columns: 1fr;
    }

    .development-step,
    .development-step:nth-child(even) {
        grid-template-columns: 58px 1fr;
        transform: none;
    }

    .development-timeline::before {
        left: 28px;
    }

    .api-security-checks {
        grid-template-columns: 1fr;
    }

    .devsecops-cycle {
        width: min(390px, 92vw);
    }
}

@media (max-width: 520px) {
    .appsec-summary-strip {
        grid-template-columns: 1fr;
    }

    .summary-strip-item {
        border-right: 0;
        border-bottom: 1px solid rgba(74,219,255,.1);
    }

    .summary-strip-item:last-child {
        border-bottom: 0;
    }

    .appsec-visual {
        min-height: 350px;
    }

    .appsec-visual::before {
        width: 310px;
        height: 310px;
    }

    .appsec-visual::after {
        width: 225px;
        height: 225px;
    }

    .application-window-body {
        padding: 18px;
        font-size: .72rem;
    }

    .application-shield {
        right: -8px;
        bottom: -28px;
        width: 88px;
        height: 104px;
    }

    .tag-one { left: 0; }
    .tag-two { right: 0; }
    .tag-three { left: 3%; }

    .surface-core {
        width: 280px;
    }

    .devsecops-cycle {
        width: 320px;
    }

    .cycle-node {
        min-width: 72px;
        padding: 8px;
    }

    .cycle-node strong {
        font-size: .62rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .application-security-page *,
    .application-security-page *::before,
    .application-security-page *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
