/* ═══ HERO ═══ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 90px;
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249,174,0,0.04) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 56px;
}

.hero-text { flex: 1; max-width: 520px; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(249,174,0,0.08);
    border: 1px solid rgba(249,174,0,0.2);
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-orange);
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease;
}

.hero-badge .pulse {
    width: 8px; height: 8px;
    background: var(--accent-orange);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:0.5; transform:scale(1.3); }
}

.hero h1 {
    font-size: clamp(36px, 5vw, 62px);
    font-weight: 900;
    line-height: 1.06;
    letter-spacing: -0.03em;
    margin-bottom: 22px;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero-text > p {
    font-size: clamp(15px, 1.8vw, 18px);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 36px;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease 0.3s both;
}

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

/* ═══ TERMINAL HERO ═══ */
.hero-terminal {
    flex: 1;
    max-width: 560px;
    animation: fadeInUp 0.8s ease 0.25s both;
}

.terminal {
    background: #111418;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04);
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.65;
}

.terminal-header {
    background: #1c2026;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dots { display: flex; gap: 6px; }
.terminal-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
}
.terminal-dot.red    { background: #ff5f57; }
.terminal-dot.yellow { background: #febc2e; }
.terminal-dot.green  { background: #28c840; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.5px;
    margin-right: 54px; /* compensate dots width */
}

.terminal-body {
    padding: 24px 22px;
    overflow-x: auto;
}

.terminal-line {
    display: flex;
    align-items: flex-start;
    gap: 0;
    min-height: 21px;
}

.terminal-line + .terminal-line { margin-top: 2px; }
.terminal-line.mt { margin-top: 14px; }
.terminal-line.mb { margin-bottom: 6px; }

.t-prompt { color: var(--accent-orange); font-weight: 700; margin-right: 10px; flex-shrink: 0; }
.t-cmd    { color: #e2e8f0; }
.t-flag   { color: #7dd3fc; } /* sky blue */
.t-val    { color: #86efac; } /* green */
.t-cont   { color: rgba(255,255,255,0.2); margin: 0 6px; } /* continuation \ */
.t-comment{ color: rgba(255,255,255,0.22); font-style: italic; }
.t-out    { color: rgba(255,255,255,0.45); padding-left: 4px; }
.t-success{ color: #4ade80; font-weight: 600; padding-left: 4px; }
.t-key    { color: rgba(255,255,255,0.35); padding-left: 4px; }
.t-keyval { color: rgba(255,255,255,0.6); }
.t-accent { color: var(--accent-orange); font-weight: 600; }
.t-bar    { color: var(--accent-orange); padding-left: 4px; }
.t-indent { padding-left: 20px; }

/* JSON syntax */
.t-json-key   { color: #7dd3fc; } /* sky blue — keys */
.t-json-brace { color: rgba(255,255,255,0.5); font-weight: 600; }
.t-json-punct { color: rgba(255,255,255,0.35); }

.terminal-cursor {
    display: inline-block;
    width: 8px; height: 15px;
    background: var(--accent-orange);
    vertical-align: middle;
    margin-left: 2px;
    animation: blink 1.1s step-end infinite;
    border-radius: 1px;
    opacity: 0.85;
}

@keyframes blink {
    0%,100% { opacity: 0.85; }
    50%      { opacity: 0; }
}

/* ═══ PASOS ═══ */
.steps-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.steps-section .container { text-align: center; }

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 36px;
    left: calc(16.6% + 10px);
    right: calc(16.6% + 10px);
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange) 0%, rgba(249,174,0,0.15) 100%);
    z-index: 0;
}

.step-card {
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.step-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), transparent 60%);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.step-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.13); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.step-card:hover::before { opacity: 1; }

.step-number {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(249,174,0,0.1);
    border: 2px solid rgba(249,174,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 20px;
    font-weight: 800;
    color: var(--accent-orange);
    transition: background 0.2s;
}

.step-card:hover .step-number { background: rgba(249,174,0,0.18); }
.step-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.step-card p  { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

.step-nav {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.06);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.step-nav code {
    background: rgba(255,255,255,0.06);
    padding: 2px 7px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 11px;
    color: var(--accent-orange);
}

/* ═══ API TOKEN ═══ */
.token-section .container { max-width: 900px; }

.token-card {
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-top: 60px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.token-info { flex: 1; }
.token-info h3 { font-size: 22px; font-weight: 800; margin-bottom: 14px; }
.token-info p  { font-size: 14px; color: var(--text-secondary); line-height: 1.75; margin-bottom: 20px; }

.token-steps { list-style: none; display: flex; flex-direction: column; gap: 12px; }

.token-steps li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.token-step-num {
    width: 24px; height: 24px;
    border-radius: 50%;
    background: rgba(249,174,0,0.1);
    border: 1px solid rgba(249,174,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    color: var(--accent-orange);
    flex-shrink: 0;
    margin-top: 1px;
}

.token-steps li strong { color: var(--text-primary); }

.token-example {
    flex: 0 0 320px;
}

.token-block {
    background: #111418;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 10px;
    overflow: hidden;
}

.token-block-header {
    background: #1c2026;
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.5px;
}

.token-block-header svg { width: 13px; height: 13px; color: var(--accent-orange); flex-shrink: 0; }

.token-block-body {
    padding: 18px 16px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 12.5px;
    line-height: 1.7;
}

/* ═══ FEATURES ═══ */
.features-section {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 60px;
}

.why-card {
    background: #1e1e1e;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-orange), transparent 60%);
    opacity: 0;
    transition: opacity 0.2s;
}

.why-card:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.13); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.why-card:hover::before { opacity: 1; }

.why-card-icon {
    width: 40px; height: 40px;
    background: rgba(249,174,0,0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-orange);
    transition: background 0.2s;
}

.why-card-icon svg { width: 20px; height: 20px; flex-shrink: 0; }
.why-card:hover .why-card-icon { background: rgba(249,174,0,0.13); }
.why-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.why-card p  { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* ═══ CTA ═══ */
.cta-section { position: relative; overflow: hidden; }
.cta-section::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(249,174,0,0.06), transparent 60%); }

.cta-box {
    position: relative; z-index: 2;
    text-align: center;
    max-width: 700px; margin: 0 auto;
    padding: 80px 40px;
    background: #1e1e1e;
    border-radius: var(--radius-xl);
    border: 1px solid rgba(249,174,0,0.15);
    box-shadow: 0 0 80px rgba(249,174,0,0.05);
}

.cta-box h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; margin-bottom: 16px; }
.cta-box p  { font-size: 16px; color: var(--text-secondary); margin-bottom: 32px; line-height: 1.7; }
.cta-box .btn-primary { padding: 18px 48px; font-size: 16px; }

/* ═══ RESPONSIVE ═══ */
@media (max-width: 1024px) {
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .token-card { flex-direction: column; gap: 36px; }
    .token-example { flex: none; width: 100%; }
}

@media (max-width: 991px) {
    .hero-content-wrapper { flex-direction: column; gap: 40px; }
    .hero-text { max-width: 100%; }
    .hero-terminal { max-width: 100%; width: 100%; }
    .steps-grid { grid-template-columns: 1fr; }
    .steps-grid::before { display: none; }
}

@media (max-width: 768px) {
    .section { padding: 70px 0; }
    .why-grid { grid-template-columns: 1fr; }
    .token-card { padding: 32px 24px; }
    .terminal { font-size: 12px; }
}

@media (max-width: 600px) {
    .cta-box { padding: 48px 20px; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
}
