* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 22px;
    line-height: 1.6;
    background-color: #ffffff;
    color: #000000;
}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #000000;
        color: #ffffff;
    }
    
    .card {
        background-color: #1a1a1a;
    }
    
    .button {
        background-color: #ffffff;
        color: #000000;
    }
    
    .button:hover {
        background-color: #e0e0e0;
    }
    
    hr {
        border-color: #333333;
    }
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
}

header strong {
    font-size: 28px;
    font-weight: 700;
}

nav {
    display: flex;
    gap: 40px;
}

nav a {
    text-decoration: none;
    color: inherit;
    font-weight: 500;
}

nav a:hover {
    opacity: 0.7;
}

main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 60px 120px;
}

main p {
    margin-bottom: 20px;
}

main a {
    color: inherit;
}

.imgn {
  max-width: 50%; /* Image will be no wider than its container */
  height: auto;    /* Maintains aspect ratio */
}

h1 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 60px;
}

h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-bottom: 80px;
}

.card {
    background-color: #f5f5f5;
    border-radius: 16px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

@media (prefers-color-scheme: dark) {
    .card {
        background-color: #1a1a1a;
    }
}

.card p {
    margin-bottom: 30px;
    flex-grow: 1;
}

.button {
    display: inline-block;
    background-color: #000000;
    color: #ffffff;
    padding: 16px 32px;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
    align-self: flex-start;
}

.button:hover {
    background-color: #333333;
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: auto;
}

.macos-screenshot {
    /*aspect-ratio: 1 / 1;
    object-fit: cover;*/
    max-width: 100%;
}

hr {
    border: none;
    border-top: 2px solid #e0e0e0;
    margin: 80px 0;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px;
    max-width: 1400px;
    margin: 0 auto;
    border-top: 2px solid #e0e0e0;
}

@media (prefers-color-scheme: dark) {
    footer {
        border-top-color: #333333;
    }
}

footer p {
    font-size: 22px;
}

/* Form styles */
.form-wrap{
  width:100%;
  max-width:900px;
}
label{
  display:block;
  margin-bottom:8px;
  font-weight:500;
}
input[type="text"],
input[type="email"],
textarea{
  width:100%;
  padding:5px 24px;
  border:1px solid currentColor;
  background:transparent;
  color:inherit;
  resize:vertical;
  font-size:1rem;
  margin-bottom:18px;
  min-height:44px;
}
textarea{min-height:160px;padding-top:14px}
button[type="submit"]{
  padding:16px 26px;
  border:1px solid currentColor;
  background:transparent;
  color:inherit;
  cursor:pointer;
  font-weight:700;
  font-size: 0.7rem;
  text-transform:uppercase;
}


.app-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

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

.app-info .button {
    align-self: flex-start;
}

.app-screenshot img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}


@media (max-width: 768px) {
    header, footer {
        flex-direction: column;
        gap: 30px;
        padding: 30px 30px;
    }
    
    main {
        padding: 40px 30px 80px;
    }
    
    h1 {
        font-size: 36px;
        margin-bottom: 40px;
    }
    
    .cards {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    nav {
        gap: 30px;
    }

   .app-detail {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}