/* Design System and Variables */
:root {
    --bg-base: #06090f;
    --bg-surface: #0f1626;
    --bg-surface-hover: #17223b;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-active: rgba(255, 255, 255, 0.16);
    
    /* Colors representing the Philippine sun and sunset warmth */
    --accent-orange: #ff7e5f;
    --accent-yellow: #feb47b;
    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;
    --accent-cyan: #06b6d4;
    
    --text-primary: #f9fafb;
    --text-secondary: #9ca3af;
    --text-muted: #6b7280;
    
    --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    
    --shadow-glow: 0 0 30px rgba(255, 126, 95, 0.15);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Grid helper */
.grid {
    display: grid;
    gap: 24px;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Gradients */
.gradient-text {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-base);
    border: none;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-yellow) 100%);
    color: #0c0800;
    border: none;
    box-shadow: 0 4px 15px rgba(255, 126, 95, 0.2);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 126, 95, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--border-color-active);
    background-color: rgba(255, 255, 255, 0.03);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-xs {
    padding: 6px 12px;
    font-size: 12px;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 100px;
    background-color: rgba(255, 126, 95, 0.08);
    border: 1px solid rgba(255, 126, 95, 0.2);
    color: var(--accent-yellow);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Card glassmorphism */
.card-glass {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: var(--transition-smooth);
}

.card-glass:hover {
    border-color: var(--border-color-active);
    background: var(--bg-surface-hover);
    transform: translateY(-2px);
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 72px;
    background: rgba(6, 9, 15, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    position: relative;
}

.logo-glow {
    position: absolute;
    width: 24px;
    height: 24px;
    background: radial-gradient(circle, var(--accent-orange) 0%, transparent 80%);
    filter: blur(6px);
    opacity: 0.5;
    left: 4px;
    top: 4px;
}

.logo-svg {
    z-index: 2;
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
    color: var(--text-primary);
}

.logo-accent {
    font-weight: 400;
    color: var(--accent-yellow);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}


.nav-link {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: 100px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.12;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 80%);
    top: -100px;
    right: 10%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent-orange) 0%, transparent 80%);
    bottom: -50px;
    left: 10%;
}

.hero-container {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 48px;
    align-items: center;
}

.hero-content {
    max-width: 580px;
}

.hero-title {
    font-size: 48px;
    line-height: 1.15;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Mockup elements */
.hero-visual {
    position: relative;
}

.dashboard-mockup {
    background: #0b0f19;
    border: 1px solid var(--border-color-active);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), var(--shadow-glow);
}

.mockup-header {
    height: 44px;
    background: #0f1626;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
    justify-content: space-between;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.mockup-title {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
}

.mockup-status {
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 500;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.mockup-body {
    padding: 20px;
    min-height: 280px;
    font-size: 14px;
}

/* Chat thread inside mockup */
.chat-thread {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.msg {
    display: flex;
    gap: 12px;
}

.msg-user {
    justify-content: flex-end;
}

.msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--border-color-active);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.msg-avatar.logo-bg {
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-yellow) 100%);
    color: #0c0800;
}

.msg-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.5;
}

.msg-user .msg-bubble {
    background-color: #1e293b;
    border-top-right-radius: 2px;
}

.msg-agent .msg-bubble {
    background-color: #111827;
    border-top-left-radius: 2px;
    border: 1px solid var(--border-color);
}

.msg-bubble p {
    margin-bottom: 8px;
}

.msg-bubble p:last-child {
    margin-bottom: 0;
}

.msg-bubble ol {
    margin-left: 20px;
    margin-top: 8px;
    margin-bottom: 8px;
}

.msg-bubble li {
    margin-bottom: 4px;
}

/* Agent Tool execution styling */
.agent-tool-execution {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: #070a12;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--accent-cyan);
    margin-bottom: 12px;
}

.tool-spinner {
    width: 10px;
    height: 10px;
    border: 1.5px solid rgba(6, 182, 212, 0.2);
    border-top-color: var(--accent-cyan);
    border-radius: 50%;
    animation: rotate 1s infinite linear;
}

/* Use cases section */
.use-cases-sec {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 56px auto;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 16px;
}

.use-cases-grid {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    padding: 32px;
    height: 100%;
}

.card-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.card-icon.gradient-1 {
    background: rgba(255, 126, 95, 0.08);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 126, 95, 0.2);
}

.card-icon.gradient-2 {
    background: rgba(99, 102, 241, 0.08);
    color: var(--accent-indigo);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.card-icon.gradient-3 {
    background: rgba(6, 182, 212, 0.08);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

.card-title {
    font-size: 20px;
    margin-bottom: 12px;
}

.card-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* How It Works section */
.how-it-works-sec {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-base) 0%, #080d19 100%);
}

.tech-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 48px;
}

.tech-card {
    padding: 40px;
    position: relative;
    overflow: hidden;
}

.tech-badge {
    position: absolute;
    top: 24px;
    right: 24px;
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
    border-radius: 4px;
}

.badge-blue {
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.badge-purple {
    background: rgba(168, 85, 247, 0.1);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.2);
}

.tech-title {
    font-size: 28px;
    margin-bottom: 8px;
}

.tech-text {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 28px;
    max-width: 90%;
}

.tech-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-features li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 14px;
}

.check-icon {
    margin-top: 3px;
    color: var(--accent-orange);
    flex-shrink: 0;
}

/* System diagram mockup */
.architecture-diagram {
    padding: 32px;
    text-align: center;
}

.diag-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.svg-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.arch-svg {
    max-height: 320px;
}

/* Playground section styling */
.playground-sec {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
}

.agent-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.agent-tab {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    padding: 16px 24px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    text-align: left;
    transition: var(--transition-smooth);
}

.agent-tab:hover {
    border-color: var(--border-color-active);
    background: var(--bg-surface-hover);
}

.agent-tab.active {
    border-color: var(--accent-orange);
    background: rgba(255, 126, 95, 0.04);
}

.tab-emoji {
    font-size: 28px;
}

.tab-info {
    display: flex;
    flex-direction: column;
}

.tab-name {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.tab-role {
    font-size: 12px;
    color: var(--text-secondary);
}

/* Console card */
.console-box {
    overflow: hidden;
}

.console-header {
    height: 48px;
    background: #0f1626;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.console-agent-title {
    font-family: var(--font-heading);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.active-agent-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-orange);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.playground-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    min-height: 400px;
}

.play-chat-panel {
    padding: 24px;
    border-right: 1px solid var(--border-color);
    max-height: 480px;
    overflow-y: auto;
}

.play-chat-messages {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Technical log console */
.play-log-panel {
    background: #05070c;
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 12px;
    max-height: 480px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.log-header {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 8px;
}

.terminal-icon {
    color: var(--text-muted);
}

.log-lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-line {
    line-height: 1.5;
    word-break: break-all;
}

.log-time {
    color: var(--text-muted);
}

.log-tag {
    color: var(--accent-yellow);
}

.log-tag.api {
    color: var(--accent-indigo);
}

.log-tag.tool {
    color: var(--accent-cyan);
}

.log-text-green {
    color: #10b981;
}

/* Quickstart section */
.quickstart-sec {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-base) 0%, #06090e 100%);
}

.code-showcase {
    overflow: hidden;
    max-width: 900px;
    margin: 0 auto;
}

.code-tabs {
    display: flex;
    background: #0a0d14;
    border-bottom: 1px solid var(--border-color);
}

.code-tab {
    background: transparent;
    border: none;
    border-right: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 14px 24px;
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.code-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.02);
}

.code-tab.active {
    background: var(--bg-surface);
    color: var(--accent-yellow);
    border-bottom: 1.5px solid var(--accent-yellow);
}

.code-body {
    padding: 24px;
    background: #090c13;
    overflow-x: auto;
}

.code-pre {
    display: none;
    font-family: var(--font-mono);
    font-size: 13.5px;
    line-height: 1.6;
}

.code-pre.active {
    display: block;
}

/* Code coloring tokens */
.code-keyword { color: #f43f5e; }
.code-string { color: #10b981; }
.code-comment { color: var(--text-muted); font-style: italic; }
.code-number { color: #f59e0b; }

/* Footer styling */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0 40px 0;
    background-color: #04060a;
}

.footer-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.footer-logo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 13.5px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 24px;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--text-primary);
}

.dot-sep {
    color: var(--text-muted);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.4;
        transform: scale(0.9);
    }
}

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

/* Contact Section */
.contact-sec {
    padding: 100px 0;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(180deg, var(--bg-base) 0%, #05080e 100%);
}
.contact-card-wrapper {
    max-width: 600px;
    margin: 0 auto;
}

.contact-info {
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.info-title {
    font-size: 24px;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--accent-orange) 0%, var(--accent-yellow) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.info-text {
    color: var(--text-secondary);
    font-size: 15px;
    margin-bottom: 32px;
    line-height: 1.6;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 16px;
}

.info-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(255, 126, 95, 0.08);
    color: var(--accent-orange);
    border: 1px solid rgba(255, 126, 95, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-details {
    display: flex;
    flex-direction: column;
}

.info-label {
    font-size: 11px;
    color: var(--text-muted);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-link {
    font-size: 15px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.info-link:hover {
    color: var(--accent-yellow);
    transform: translateX(2px);
}

.contact-form-card {
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-family: var(--font-heading);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
    background: rgba(6, 9, 15, 0.6);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-orange);
    outline: none;
    box-shadow: 0 0 15px rgba(255, 126, 95, 0.15);
    background: rgba(6, 9, 15, 0.85);
}

.btn-submit {
    align-self: flex-start;
    gap: 8px;
    padding: 14px 28px;
}

.send-icon {
    transition: transform 0.3s ease;
}

.btn-submit:hover .send-icon {
    transform: translate(2px, -2px);
}

.form-status {
    font-size: 13px;
    font-weight: 500;
    margin-top: 8px;
    display: none;
}

.form-status.success {
    color: #10b981;
}

.form-status.error {
    color: #ef4444;
}

/* Responsive Media Queries */
@media (max-width: 968px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 32px;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .tech-columns {
        grid-template-columns: 1fr;
    }
    
    .playground-grid {
        grid-template-columns: 1fr;
    }
    
    .play-chat-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        max-height: 320px;
    }
    
    .play-log-panel {
        max-height: 250px;
    }
}

@media (max-width: 640px) {
    .nav-links {
        display: none;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
    
    .agent-tabs {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}
