/* =========================================================
   Tendon Landing — kalayaaninteractive.com/tendon
   Extends css/style.css (shared design tokens).
   ========================================================= */

.tendon-page {
    background: var(--bg-void);
}

.t-container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 2rem;
}

.t-visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

/* =========================================================
   TOP BAR
   ========================================================= */
.t-topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    background: linear-gradient(to bottom, rgba(5,5,5,.85) 0%, rgba(5,5,5,0) 100%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.t-home-link {
    display: flex;
    align-items: center;
    gap: .7rem;
    color: var(--text-dim);
    text-decoration: none;
    font-family: var(--ff-display);
    font-size: .75rem;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    transition: color .3s ease;
}
.t-home-link:hover { color: var(--gold); }

.t-home-icon {
    opacity: .7;
    transition: opacity .3s ease;
}
.t-home-link:hover .t-home-icon { opacity: 1; }

.t-topbar-cta {
    font-family: var(--ff-display);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    text-decoration: none;
    padding: .6rem 1.1rem;
    border: 1px solid var(--gold-deep);
    border-radius: 2px;
    transition: border-color .3s ease, color .3s ease, background .3s ease;
}
.t-topbar-cta:hover {
    border-color: var(--gold);
    background: var(--gold-glow);
    color: var(--gold-light);
}

@media (max-width: 540px) {
    .t-home-text { display: none; }
    .t-topbar { padding: .8rem 1.2rem; }
}

/* =========================================================
   HERO
   ========================================================= */
.t-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, rgba(35,28,12,.85) 0%, rgba(35,28,12,.25) 40%, rgba(5,5,5,0) 75%),
        var(--bg-void);
    overflow: hidden;
    padding: 0 2rem;
}

.t-hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 160px;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-void) 100%);
    z-index: 2;
    pointer-events: none;
}

#rope-canvas {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    z-index: 1;
}

.t-hero-content {
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.4rem;
    text-align: center;
    opacity: 0;
    animation: t-fade-up 1.4s var(--ease-expo) .25s forwards;
}
@keyframes t-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.t-eyebrow {
    font-family: var(--ff-display);
    font-size: .72rem;
    font-weight: 400;
    letter-spacing: .32em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.t-wordmark {
    font-family: var(--ff-display);
    font-size: clamp(3.5rem, 11vw, 7.5rem);
    font-weight: 700;
    letter-spacing: .05em;
    line-height: 1;
    margin: .2em 0 .1em;
    background: linear-gradient(
        180deg,
        var(--gold-pale) 0%,
        var(--gold-light) 30%,
        var(--gold) 55%,
        var(--gold-dark) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 30px rgba(212,165,55,.18));
}

.t-tagline {
    font-family: var(--ff-body);
    font-size: clamp(1rem, 2.2vw, 1.3rem);
    font-weight: 300;
    letter-spacing: .04em;
    color: var(--text-dim);
    max-width: 620px;
}

.t-badges {
    display: flex;
    gap: .7rem;
    margin-top: 1.2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.t-badge {
    font-family: var(--ff-display);
    font-size: .68rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    padding: .55rem 1rem;
    border-radius: 2px;
    background: var(--gold-glow);
    color: var(--gold-light);
    border: 1px solid var(--gold-deep);
}
.t-badge--ghost {
    background: transparent;
    color: var(--text-mute);
    border-color: rgba(122,90,16,.35);
}

/* Scroll indicator (same shape as main site, scoped) */
.t-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    opacity: 0;
    animation: fade-in 1s ease 2s forwards;
}

.t-scroll-label {
    font-family: var(--ff-display);
    font-size: .58rem;
    font-weight: 400;
    letter-spacing: .26em;
    text-transform: uppercase;
    color: var(--text-mute);
}

.t-scroll-chevron {
    width: 10px; height: 10px;
    border-right: 1px solid var(--text-mute);
    border-bottom: 1px solid var(--text-mute);
    transform: rotate(45deg);
    animation: chevron-bob 2s ease-in-out infinite;
}

/* =========================================================
   PITCH
   ========================================================= */
.t-pitch {
    padding: 6rem 0 4rem;
    background: var(--bg-void);
    text-align: center;
}

.t-lede {
    font-family: var(--ff-body);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.85;
    color: var(--text-dim);
    max-width: 680px;
    margin: 1.6rem auto 0;
}
.t-lede strong {
    color: var(--text);
    font-weight: 500;
}

/* =========================================================
   FEATURES
   ========================================================= */
.t-features {
    padding: 4rem 0 6rem;
    background: var(--bg-void);
}

.t-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(122,90,16,.18);
    border: 1px solid rgba(122,90,16,.18);
    border-radius: 2px;
}

.t-feature {
    position: relative;
    padding: 2.2rem 1.8rem;
    background: var(--bg-deep);
    transition: background .4s ease;
}
.t-feature:hover { background: var(--bg-raised); }

.t-feature-num {
    font-family: var(--ff-display);
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .28em;
    color: var(--gold-dark);
    margin-bottom: 1.2rem;
}

.t-feature-title {
    font-family: var(--ff-display);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--text);
    margin-bottom: .7rem;
}

.t-feature-text {
    font-family: var(--ff-body);
    font-size: .92rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text-dim);
}
.t-feature-text code {
    font-family: 'JetBrains Mono', monospace;
    font-size: .82rem;
    color: var(--gold-light);
    background: rgba(212,165,55,.08);
    padding: .05em .35em;
    border-radius: 2px;
}

@media (max-width: 900px) {
    .t-feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .t-feature-grid { grid-template-columns: 1fr; }
    .t-feature      { padding: 1.8rem 1.4rem; }
}

/* =========================================================
   CODE PEEK
   ========================================================= */
.t-code {
    padding: 5rem 0 6rem;
    background: var(--bg-void);
    text-align: center;
}

.t-code .section-tag { margin-top: 3rem; margin-bottom: 2.5rem; }

.t-code-block {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
    background: var(--bg-deep);
    border: 1px solid rgba(122,90,16,.28);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,.5), 0 0 0 1px rgba(212,165,55,.03);
}

.t-code-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .7rem 1rem;
    background: var(--bg-surf);
    border-bottom: 1px solid rgba(122,90,16,.22);
}
.t-code-dot {
    width: 9px; height: 9px;
    border-radius: 50%;
    background: var(--gold-deep);
    opacity: .55;
}
.t-code-dot:nth-child(2) { opacity: .4; }
.t-code-dot:nth-child(3) { opacity: .28; }
.t-code-file {
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: .72rem;
    color: var(--text-mute);
    letter-spacing: .04em;
}

.t-code-body {
    margin: 0;
    padding: 1.4rem 1.6rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: .85rem;
    line-height: 1.75;
    color: var(--text-dim);
    overflow-x: auto;
}
.t-c-key { color: #c0739a; font-weight: 500; }
.t-c-mac { color: var(--gold-light); }
.t-c-typ { color: #6ec4b8; }
.t-c-fn  { color: var(--gold); }
.t-c-com { color: var(--text-mute); font-style: italic; }

@media (max-width: 560px) {
    .t-code-body { font-size: .76rem; padding: 1.1rem; }
}

/* =========================================================
   NOTIFY
   ========================================================= */
.t-notify {
    position: relative;
    padding: 6rem 0 7rem;
    background: var(--bg-void);
    text-align: center;
    overflow: hidden;
}

.t-notify-title {
    font-family: var(--ff-display);
    font-size: clamp(1.6rem, 4.5vw, 2.4rem);
    font-weight: 600;
    letter-spacing: .08em;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.t-notify-sub {
    font-family: var(--ff-body);
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-dim);
    margin-top: .8rem;
    margin-bottom: 2.2rem;
    position: relative;
    z-index: 1;
}

.t-notify-form {
    position: relative;
    z-index: 1;
    display: flex;
    gap: .6rem;
    max-width: 480px;
    margin: 0 auto;
    align-items: stretch;
}

.t-input {
    flex: 1;
    padding: .95rem 1.1rem;
    background: var(--bg-deep);
    border: 1px solid rgba(122,90,16,.35);
    border-radius: 2px;
    color: var(--text);
    font-family: var(--ff-body);
    font-size: .95rem;
    font-weight: 300;
    letter-spacing: .02em;
    transition: border-color .3s ease, background .3s ease;
    outline: none;
}
.t-input::placeholder { color: var(--text-mute); }
.t-input:focus {
    border-color: var(--gold);
    background: var(--bg-raised);
}

.t-submit {
    padding: .95rem 1.4rem;
    background: var(--gold);
    color: var(--bg-void);
    font-family: var(--ff-display);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background .3s ease, transform .15s ease;
}
.t-submit:hover   { background: var(--gold-light); }
.t-submit:active  { transform: scale(.97); }

.t-notify-fine {
    font-family: var(--ff-body);
    font-size: .78rem;
    color: var(--text-mute);
    margin-top: 1.2rem;
    letter-spacing: .04em;
    position: relative;
    z-index: 1;
}

@media (max-width: 540px) {
    .t-notify-form { flex-direction: column; }
    .t-submit      { padding: 1rem; }
}

/* Footer tweak for tendon page */
.t-footer-home {
    display: block;
    transition: transform .3s ease;
}
.t-footer-home:hover { transform: translateY(-2px); }
